Z
Z
Zaur Ashurbekov2014-04-09 22:20:52
ruby
Zaur Ashurbekov, 2014-04-09 22:20:52

Working with 16/8/2 floating point numbers in Ruby - how to get around the problem?

Hello Habr!
There was a task of work in Ruby with 16/8/2-ary floating-point numbers. Ruby only supports floats with 10's. If there is a way around this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jj_killer, 2014-04-09
@zaurius

Use BigDecimal .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question