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! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)