#idk what i did wrong

1 messages · Page 1 of 1 (latest)

merry crane
dreamy atlasBOT
#

<@&987246399047479336> please have a look, thanks.

merry crane
#

idk why its overflow

opal talon
#

for the first one, a line terminator was expected

#

you are doing 10k * 20k * 30k * 50k

#

you dont expect that to overflow?

merry crane
#

so what do i do to fix that?

opal talon
#

you could use BigInteger to bypass the bit limit

tawny forum
#

It's doing integer multiplication. It should be double multiplication. Casting a term to double, or initial multiplying by 1.0 would work.