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

529 views

ANSWER



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. :)
02/07/2014