Flee icon indicating copy to clipboard operation
Flee copied to clipboard

no integer divisions should be allowed by default

Open TheOOnewbie opened this issue 3 years ago • 1 comments

this would help a lot, If the following code is by default set to be true

context.Options.IntegersAsDoubles = true;

TheOOnewbie avatar Jun 15 '22 11:06 TheOOnewbie

I know this is years old but thank you @TheOOnewbie Had a lot of trouble understanding strange behavior in my app until this post clued me in, agreed it should be the default.

with IntegersAsDoubles = false; (the default) 5*1/2 result is 2 5*(1/2) result is 0

with IntegersAsDoubles = true; 5*1/2 result is 2.5 5*(1/2) result is 2.5

joshlupo avatar Aug 28 '25 18:08 joshlupo