Why this example will return 0.93
> trunc(0.94/100*100*100)/100
[1] 0.93
but this example:
> trunc(0.94*100)/100
[1] 0.94
returns 0.94. It is floating point error. How can I transform result of the calculations 0.94/100*100*100 in normal 94? 
Why this example will return 0.93
> trunc(0.94/100*100*100)/100
[1] 0.93
but this example:
> trunc(0.94*100)/100
[1] 0.94
returns 0.94. It is floating point error. How can I transform result of the calculations 0.94/100*100*100 in normal 94? 
 
    
    As Justin said in the comments, floating point error.
Read this: What Every Computer Scientist Should Know About Floating-Point Arithmetic
(it applies to statisticians and scientists too, at least one who use computers!)
