K
kkyzir
Hello everybody! I have the following question:
Given a double number, can I calculate the next closest double that can
represented from Java's float implementation ?
e.g. If I have the number
1.500000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000000
and the precision is
0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
then the next number would be
1.500000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000001
Can I do something like this or the precision is not the same for all
numbers?
Thanks in advance!
Given a double number, can I calculate the next closest double that can
represented from Java's float implementation ?
e.g. If I have the number
1.500000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000000
and the precision is
0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
then the next number would be
1.500000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000001
Can I do something like this or the precision is not the same for all
numbers?
Thanks in advance!