in Foxpro the difference between currency and number datatype -
what difference between number , currency data type, , how treated internally fox-pro.
depends.
on disk (as fields of dbf), numeric fields store ascii representation of number, including sign , decimal point. currency fields store 64bit integer number.
when used in calculations (in memory), currency values still 64bit integer amounts float or numeric implemented ieee floating point numbers.
to people, what's important integer math never loses precision, whereas can become problem floating point math.
Comments
Post a Comment