OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Strange validation wording: "must be a real number" #2432

Open steventlamb opened 8 years ago

steventlamb commented 8 years ago

This is not exactly correct, because databases don't store infinitely repeating decimal number. More importantly, "real number" is a mathematical term and a strange fit for a webapp.

screenshot from 2016-01-11 19 15 08

jwalgran commented 8 years ago

The validation error is generated here: https://github.com/OpenTreeMap/otm-core/blob/8423bff2c89badf234085f898fa066d9cf9a0f0f/opentreemap/treemap/udf.py#L767-L773

I would suggest we use the word "decimal" rather than "real." The datatype is "float," but I think that is too technical for the validation message.

dboyer commented 8 years ago

I would agree with decimal over float.