Alda Vigdís on Nostr: Here's a fun bug: #WooCommerce has functions, settings and constants for mathematical ...
Here's a fun bug:
#WooCommerce has functions, settings and constants for mathematical precision beyond the number of decimals your currency has.
However, item subtotals for orders (before tax) get rounded down to the number of decimals, but not the tax amount. This means that if you have two items that are 1.3333 EUR each, the line total is rounded up 2.67, losing one cent of accuracy.
Published at
2026-04-15 09:42:56 UTCEvent JSON
{
"id": "bd288ab36f6595d885017db9400915b916315afb090003f2b2d21644681e71b6",
"pubkey": "c81df621f605af61945a8ab2fa4d4098092f6d6b2f1c5cbc6bb74df4f8bd04d0",
"created_at": 1776246176,
"kind": 1,
"tags": [
[
"proxy",
"https://topspicy.social/@alda/116408069432165392",
"web"
],
[
"t",
"woocommerce"
],
[
"proxy",
"https://topspicy.social/users/alda/statuses/116408069432165392",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://topspicy.social/users/alda/statuses/116408069432165392",
"pink.momostr"
],
[
"-"
]
],
"content": "Here's a fun bug:\n\n#WooCommerce has functions, settings and constants for mathematical precision beyond the number of decimals your currency has.\n\nHowever, item subtotals for orders (before tax) get rounded down to the number of decimals, but not the tax amount. This means that if you have two items that are 1.3333 EUR each, the line total is rounded up 2.67, losing one cent of accuracy.",
"sig": "222ed095861a0c49ee2eb02279e01fa6cd14c2b3b08ba5c795968cccea2d63200f0440ef98f2708623146c831d0d4f2680380b6ec70ac09adae799723b404e45"
}