Post Reply 
Base converter with fractions?
02-02-2017, 05:26 PM (This post was last modified: 02-02-2017 05:29 PM by Jan_D.)
Post: #13
RE: Base converter with fractions?
(01-27-2017 04:37 AM)Han Wrote:  I'm sure there is another method using numer() and denom() rather than ip().

Yes, that is true.
Instead of IP(x) we can use iquo(numer(x),denom(x))
(easy to find in Toolbox menu: CAS -Integer - Division - Quotient)

When x=999999999999999/1000000000000000
the first method returns 1 and the second method gives the correct result 0.

You found a smart way to correct it though, in a smart program!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Base converter with fractions? - Joe Horn - 01-15-2017, 05:53 AM
RE: Base converter with fractions? - Jan_D - 01-22-2017, 03:13 PM
RE: Base converter with fractions? - Jan_D - 01-26-2017, 12:38 PM
RE: Base converter with fractions? - Han - 01-27-2017, 05:00 AM
RE: Base converter with fractions? - Han - 01-26-2017, 06:57 PM
RE: Base converter with fractions? - Jan_D - 01-28-2017, 01:42 PM
RE: Base converter with fractions? - Han - 01-27-2017, 04:37 AM
RE: Base converter with fractions? - Jan_D - 02-02-2017 05:26 PM
RE: Base converter with fractions? - Jan_D - 02-03-2017, 01:51 PM
RE: Base converter with fractions? - Jan_D - 02-21-2017, 05:59 PM
RE: Base converter with fractions? - Han - 02-21-2017, 07:30 PM
RE: Base converter with fractions? - Jan_D - 02-22-2017, 06:03 PM
RE: Base converter with fractions? - Han - 02-03-2017, 02:31 PM
RE: Base converter with fractions? - Jan_D - 02-03-2017, 05:52 PM
RE: Base converter with fractions? - Jan_D - 02-13-2017, 01:14 PM
RE: Base converter with fractions? - Han - 02-13-2017, 01:27 PM



User(s) browsing this thread: 2 Guest(s)