You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the numeric format for decimal numbers, unfortunately the number representation only works with erlang floating point values.
One solution I see would be to give a binary-string representation of the decimal number, boxed in a tuplewith a special key telling JSX to format it as a number, perhaps by ways of escaping the value in a special tuple, something like:
Of course, this also poses the problem of decoding a decimal number with JSX. Again, we could choose to box the string representation of a number so the choice to actually decode it to a float is left to the user. This process could be selected by an option...
Any ideas?
Best,
Cam
The text was updated successfully, but these errors were encountered:
Hello,
JSX is a nice and concise library, thank you!
I would like to use the numeric format for decimal numbers, unfortunately the number representation only works with erlang floating point values.
One solution I see would be to give a binary-string representation of the decimal number, boxed in a tuplewith a special key telling JSX to format it as a number, perhaps by ways of escaping the value in a special tuple, something like:
Of course, this also poses the problem of decoding a decimal number with JSX. Again, we could choose to box the string representation of a number so the choice to actually decode it to a float is left to the user. This process could be selected by an option...
Any ideas?
Best,
Cam
The text was updated successfully, but these errors were encountered: