Join Slack
Communities
Powered by
how are we supposed to represent decimals with big...
# announcements
h
Hamza
06/13/2020, 5:54 AM
how are we supposed to represent decimals with big decimal? am I missing something?
Hamza
06/13/2020, 6:04 AM
turns out big decimals keep the scale of the input. TIL
g
gauravm8
06/13/2020, 6:04 AM
use bd1.divide(bd2)
a
alex j
06/13/2020, 11:02 AM
yeah BigDecimal/BigInteger etc classes have their own arithmetic methods
c
CodeIdeal
06/13/2020, 11:06 AM
kotlin will auto overload the divide operator
a
alex j
06/13/2020, 2:55 PM
that is so cool!
r
Ryan
06/13/2020, 8:38 PM
i still think u will get the float error
Open in Slack
Previous
Next