What is the best way to enter and store amounts of currency?

Floating point is right out. Should it be a string value with validation? Does anyone have a good recipe for this?

0 votes

1 answers



Until we have a decimal type (not yet scheduled, but could be done), the best choice is unfortunately to use a string for now. You would need to add a widget with validation for it though.

1 votes

I accepted this answer but hopefully I will eventually have reason to unaccept it. :)