Variable of type Double not acting as expected ( 1e-26 = 0 )
Posted: Thu Aug 23, 2012 11:16 pm
Given:
PB 4.61 ( for linux )
LX: Ubuntu 10.04 LTS (64bit)
Problem: value of type Double not working as expected. Meaning a value of 1e-26 will be zero.
Example:
we get
I think double should work from:
...
Double: +- 2.2250738585072013e-308 bis +- 1.7976931348623157e+308
...
Do i something wrong or is it a bug ?
Hajo
PB 4.61 ( for linux )
LX: Ubuntu 10.04 LTS (64bit)
Problem: value of type Double not working as expected. Meaning a value of 1e-26 will be zero.
Example:
Code: Select all
value.d=1.602e-16
Debug value
Debug value*value
Debug Pow(value, 2)
Debug 1e-26
Code: Select all
0.0000000000000001602
0.0
0.0
0.0
...
Double: +- 2.2250738585072013e-308 bis +- 1.7976931348623157e+308
...
Do i something wrong or is it a bug ?
Hajo