how to set the storage of number automatically to be double rather than float?
When using float, sometimes, 1.1 will becomes 1.10000000001, causing some problems. For example, a and b below should be exactly the same. how to make b equal a? (round function for b doesn't work)
When using float, sometimes, 1.1 will becomes 1.10000000001, causing some problems. For example, a and b below should be exactly the same. how to make b equal a? (round function for b doesn't work)
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(a b) 85.3 85.30000000000001 83.3 83.30000000000001 end
Comment