Question: How I can fixate digits after point (in any manipulation
return 32(for example) digits after point? And the second question is
why it rounds them differently? (first gave to 18 characters, the second
16, third 13, fourth 11)
Question: How I can fixate digits after point (in any manipulation
return 32(for example) digits after point? And the second question is
why it rounds them differently? (first gave to 18 characters, the second
16, third 13, fourth 11)
1. You can fixate the digits using printf("%f0.5", var); Just like in C.
2. This is the scientific notation[1]. The numbers are all rounder at 18 chars.
On 7 Δεκ 2013, at 16:02 , Andrey M. <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."