Is this still Node.js only? I have 'a lot' of decimal fields in my PHP project and wonder how it will effect them?
This is actually client side only and only when special decimals are passed in expressions. So just in preparation for future implementations.
Nothing server side yet.
So I assume that means I don't have to worry about my ~100 locations where I display currency amounts breaking.
Edit: All main projects updated and working fine.
Strikes a cord with me, nailed it with a search and replace while the issue was a problem, then reverted with another search and replace session!
Currently it is only for the parser to correctly detect and parse it. Beside Decimals there will be support for BigInt, notation will be suffix n
for BigInt like 100n
and suffix m
for Decimal like 0.25m
. Next we will update the arithmetic and number formatters to support the new formats.
For the Database Drivers we will have an option to enable Decimal/BigInt output which will be disabled by default for backwards compatibility. Currently it are mainly preparations and will take a while until it can actual be used.
So I can expect my bindings to break then? Just kidding.
Moving forward is there anything we need to or will need to do differently? This is the format all of my many bindings are in:
<td dmx-text="cost_amount.toNumber().formatCurrency('$', '.', ',', 2)" class="text-nowrap"></td>
I believe as long as this formatter is in the expression you should be fine @brad? But then again I'm no Patrick!