Re: scheme math
Martin DeMello via Chicken-users <[email protected]> Tue, 2 Dec 2025 11:25:37 -0800
| Newsgroups | gmane.lisp.scheme.chicken |
|---|---|
| Message-ID | <CAFrFfuGBT8BUioQF0hU8KMzSor1Q9gb8pgA-Gq8YA9QycXqM9A@mail.gmail.com> |
`truncate` does what you want martin On Tue, Dec 2, 2025, 11:16 AM Duke Normandin via Chicken-users < [email protected]> wrote: > I have a function that sometimes returns a negative real number, > like "-2.0" or "-2.65" > For both negative and positive returned numbers, I want to remove > the decimal portion and return only the quotient and the sign. > > I've tried `floor", 'flonum->inexact", and the list goes on, but > with no success. > > I'm NOT a mathematician or even very strong in arithmetic. LOL So > I'm asking for a possible solution. TIA ... > -- > Duke > >