How do you keep the digits to right of decimal?

BlitzMax Forums/BlitzMax Programming/How do you keep the digits to right of decimal?


<edit> BTW : Is your calculator broken?

Print 1024.0/329.0 results in 3.11246204.
P.S. ...

1024/329 comes out to 2.334 on a calculator.


does it *really*?



Oops. I meant 768/329 = 2.334
Calculator was not broken, just my brain for the moment:)



What I need is to get the quotient of 768/329 during runtime.
I'm trying to scale images by dividing the GraphicsHeight divided by the ImageHeight, and GraphicsWidth divided by the ImageWidth.

My pictures are all different resolutions; so I need to scale them based on the Graphic mode that is chosen. I don't care about if they look funny right now.