mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Close the remaining 5.0->5.1 string/math stdlib gaps: - string.reverse(s) / strrev(s) — byte-wise reverse; 5.1 added it, 5.0's strlib lacks it. Registered on the string table and as the strrev global. - math.modf(x) -> (integral, fractional) — integral truncated toward zero, fractional keeps x's sign (via C modf). Genuinely new in 5.1 (unlike fmod, which 1.12 has as math.mod). - math.huge — positive-infinity constant (HUGE_VAL) set directly on the math table (it's a value, not a function). All on both Lua states. Verified in-game: reverse, modf on +/- inputs, and math.huge as a true infinity sentinel.