Hi
I require "bigdecimal"
but i dont have 3.1.to_d !!
Is .to_digits an alias for .to_d ?
Bigdec is extremely slow. Is there another solution?
Thx Berg
Hi
I require "bigdecimal"
but i dont have 3.1.to_d !!
Is .to_digits an alias for .to_d ?
Bigdec is extremely slow. Is there another solution?
Thx Berg
I require "bigdecimal"
but i dont have 3.1.to_d !!
Is .to_digits an alias for .to_d ?
Besides being an enjoyable language to use, Ruby has actual
documentation; here's an example:
Bigdec is extremely slow. Is there another solution?
"slow" compared to what? "solution" for what problem?
On Sat, Feb 27, 2016 at 6:09 AM, A Berger <aberger7890@gmail.com> wrote:
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
Hi
ri: BigDecimal extends the native Numeric class to provide ... #to_d
So do "I" have to extend/include it? require seems not to be enough, to_d
doesnt work.
( does require only load the file, or executes it already ?)
speed: 15times slower than float-operations with same numbers.
Solution for getting better precision than float...
Thx Berg
again: read . the . documentation
On Sat, Feb 27, 2016 at 9:26 AM, A Berger <aberger7890@gmail.com> wrote:
ri: BigDecimal extends the native Numeric class to provide ... #to_d
So do "I" have to extend/include it? require seems not to be enough, to_d
doesnt work.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
Hello Hassan
perhaps you could tell me which paragraph in
http://ruby-doc.org/stdlib-2.3.0/libdoc/bigdecimal/rdoc/BigDecimal.html#method-i-to_digits
contains the information what to do if 3.1.to_d isnt working? (no such
method... after requiring)
Thx Berg