Let
x= 0.0000000000000000036;
y = 1 - x
If i type this in Mathematica the answer of y is 1. I want the answer to be as it is 0.9999999999999999964
Let
x= 0.0000000000000000036;
y = 1 - x
If i type this in Mathematica the answer of y is 1. I want the answer to be as it is 0.9999999999999999964
x = SetPrecision[0.0000000000000000036, 1];
y = 1 - x
(*0.9999999999999999964*)
Amplifying on Algohi's answer
Table[{
x = SetPrecision[0.0000000000000000036, n],
Precision[x],
1 - x,
Precision[1 - x]},
{n, 10}] // Grid

x=1/277777777777777769... or as inexact but showing digits 1 - 0.0000000000000000036`2 – ciao Jul 05 '14 at 21:31//InputFormto the end of your calculation, see what you see... If you're usingNto convert exact to inexact, make sure you specify enough precision in it. – ciao Jul 05 '14 at 21:44//InputFormdoes not change anything – Nikolas Jul 05 '14 at 21:48