Raising a number to a real number and asking for the result as a number via an equation yields the wrong result. The problem only arises if the base is a number, not a real number. This is a similar issue to #0001417, but here the generated I6 is missing a conversion instead of having an extra one (see below).
Steps to reproduce :
Foo is a room.
Equation 1 - Malthus
R = 2^T
where R is a number, T is a real number.
When play begins:
let R be given by Malthus where T is 6.0;
say "[R]."
Reported by : dfremont
Description :
Raising a number to a real number and asking for the result as a number via an equation yields the wrong result. The problem only arises if the base is a number, not a real number. This is a similar issue to #0001417, but here the generated I6 is missing a conversion instead of having an extra one (see below).
Steps to reproduce :
Additional information :
R is assigned using the following I6 expression:
REAL_NUMBER_TY_Pow(NUMBER_TY_to_REAL_NUMBER_TY(2), 1086324736)
This is missing a final call to REAL_NUMBER_TY_to_NUMBER_TY.
imported from: [Mantis 1582] Equations compute incorrect integer values of real powers of integers