Decimal builtin?

I am curious what people use to represent decimals when with
no rounding
error? I have a need for this and have come up against a
brick wall. I was
hoping for something that was similar to BigDecimal in Java -
does Ruby have
anything like this?

Many thanks in advance for any replies received.


what is http://www.rubycentral.com/book/ref_c_bignum.html
or http://raa.ruby-lang.org/list.rhtml?name=bigfloat, no?

Signed,
Holden Glova

kind regards -botp

···

Holden Glova [mailto:dsafari@paradise.net.nz] wrote:

Thanks for your reply Botp, but wouldn’t this still be susceptible to rounding
error?


Signed,
Holden Glova

···

On Tue, 24 Jun 2003 20:38, Peña, Botp wrote:

Holden Glova [mailto:dsafari@paradise.net.nz] wrote:

I am curious what people use to represent decimals when with
no rounding
error? I have a need for this and have come up against a
brick wall. I was
hoping for something that was similar to BigDecimal in Java -
does Ruby have
anything like this?

Many thanks in advance for any replies received.


what is http://www.rubycentral.com/book/ref_c_bignum.html
or http://raa.ruby-lang.org/list.rhtml?name=bigfloat, no?

I think it has a class rational numbers… is it useful ?

http://raa.ruby-lang.org/list.rhtml?name=polynomial

···

On Tue, 24 Jun 2003 18:42:21 +0900, Holden Glova wrote:

On Tue, 24 Jun 2003 20:38, Peña, Botp wrote:

Holden Glova [mailto:dsafari@paradise.net.nz] wrote:

I am curious what people use to represent decimals when with
no rounding
error? I have a need for this and have come up against a
brick wall. I was
hoping for something that was similar to BigDecimal in Java -
does Ruby have
anything like this?

Many thanks in advance for any replies received.


Simon Strandgaard

It could do…I’ll look into it. Thanks to those that answered - you have been
helpful.


Signed,
Holden Glova

···

On Tue, 24 Jun 2003 21:04, Simon Strandgaard wrote:

On Tue, 24 Jun 2003 18:42:21 +0900, Holden Glova wrote:

On Tue, 24 Jun 2003 20:38, Peña, Botp wrote:

Holden Glova [mailto:dsafari@paradise.net.nz] wrote:

I am curious what people use to represent decimals when with
no rounding
error? I have a need for this and have come up against a
brick wall. I was
hoping for something that was similar to BigDecimal in Java -
does Ruby have
anything like this?

Many thanks in advance for any replies received.

I think it has a class rational numbers… is it useful ?

http://raa.ruby-lang.org/list.rhtml?name=polynomial


Simon Strandgaard