Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-05-15 07:33:12

on 5/14/01 6:46 AM, Bill Seymour at bsey_at_[hidden] wrote:

> Daryle Walker asked:
>> Could/should we have a version of the "div" function
>> defined for rational numbers?

> How about something analagous to fmod(double, double)
> and modf(double, double*)?

I'm not familiar with these functions. Could you explain their semantics?

> A while back before I knew about Boost, I wrote a non-templated
> rational number class that had member functions:
[SNIP definitions of 'trunc', 'modr', and 'rmod']

> Is that what you want?

Maybe. I was reading one of my college numeric computation texts, and it
had 'int' and 'frac' functions that worked on fractions. I was thinking
about duplicating something like that for us.

Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

Boost list run by bdawes at, gregod at, cpdaniel at, john at