I6: Fractions

How do I handle fractions? I have an integer variable which I want to be rounded of itself x 1.1 (100 becomes 110). Any help appreciated.

If all you need is the integer that’s 1.1 times another integer rounded to the nearest integer, you could simply add one tenth of the original integer to itself:

The Place is a room.

Instead of jumping:
   let num be 100;
   now num is num + num / 10;
   say "Num is now [num]."

If you need something more complicated than that you might want to use the Fixed Point Maths extension by Michael Callaghan.

– Eric Eve

Guess that was way easier than I thought it was. Thanks!