H
Hiten
Hi
please check ffollowing conditon
variable float1 and float2 holds user entered value.....
Answer=float1 * float2; //output must be 8.5
output must to be 8.5 but it has 8.500002, i am confused at this point
i used calculators and other calculation mathods to see the actual
value and thet give correct 8.5 with no other decimals......
i also know that to hold exact decimals of we use f for float and m for
decimal
but that is usefull at the time of assigning inline value that is
float fVar=100.1002f;
but what about if we want same kind of things in output/value generated
by variables?
please any one knows about it
Thanks
please check ffollowing conditon
variable float1 and float2 holds user entered value.....
Answer=float1 * float2; //output must be 8.5
output must to be 8.5 but it has 8.500002, i am confused at this point
i used calculators and other calculation mathods to see the actual
value and thet give correct 8.5 with no other decimals......
i also know that to hold exact decimals of we use f for float and m for
decimal
but that is usefull at the time of assigning inline value that is
float fVar=100.1002f;
but what about if we want same kind of things in output/value generated
by variables?
please any one knows about it
Thanks