Posts: 4,558
Threads: 1,463
Joined: Sep 2016
you can convert float to decimal but you can't divide a decimal by a float. anyone know why that is?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,558
Threads: 1,463
Joined: Sep 2016
Jan-13-2017, 08:53 AM
(This post was last modified: Jan-13-2017, 08:53 AM by Skaperen.)
just initializing some
decimal.Decimal values and one of them needed to be a ratio of another, initially, and that ratio was a float even though its actual value was whole, initially, e,g
rat = 5.0, so
foo = foobar/rat failed and f
oo = foobar/decimal.Decimal(rat) got around it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.