As has been pointed out, when KoLmafia parses the "1/2" expression, it sees two integers and ends up with an integer.float number = 1/2;
int num = 123;
float fnum = ( num / 7 ) * 7 + ( num % 7 );
print( fnum );
public abstract class Test
{
public static final void main( final String[] args )
{
int num = 123;
float fnum = ( num / 7 ) * 7 + ( num % 7 );
System.out.println( fnum );
}
}
$ java -jar test.jar
123.0