ludic/docs/language/math
Orkuncakilkaya e010c2cecc feat(lang): float and double types with ordinary operators
`float` (32-bit) and `double` (64-bit) with + - * / %, comparisons and unary minus.
Decimal literals take their type from context and stay `fixed` elsewhere; int and long
promote implicitly (LUDIC_WARN_FLOAT_PROMOTE=1 lists every promotion). float(), double(),
int(), long() and fixed() convert; floats(n)/doubles(n) buffers; float fields, globals,
constants and parameters; Math.* computes in float for float arguments; string/print
write the shortest round-tripping decimal; float_bits/float_from_bits expose the bits.
@deterministic code may not use floats. The f_* runtime helpers stay as they are.

Editors know the new type words; the JetBrains plugin is 1.5.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-16 16:13:31 +03:00
..
_section.md feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
math-abs.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-acos.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-asin.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-atan2.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-ceil.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-clamp.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-cos.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-deg_to_rad.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-dist.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-dist2.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-exp.md feat(stdlib): Math.exp/log/pow + Ease.elastic transcendentals (issue #25) 2026-08-30 01:19:44 +03:00
math-floor.md refactor(lang): rename builtins flr->floor and fx->fixed 2026-08-30 02:01:56 +03:00
math-hypot.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-inverse_lerp.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-lerp.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-log.md feat(stdlib): Math.exp/log/pow + Ease.elastic transcendentals (issue #25) 2026-08-30 01:19:44 +03:00
math-max.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-min.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-move_toward.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-ping_pong.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-posmod.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-pow.md feat(stdlib): Math.exp/log/pow + Ease.elastic transcendentals (issue #25) 2026-08-30 01:19:44 +03:00
math-rad_to_deg.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-remap.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-round.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-sign.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-sin.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-smoothstep.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-snapped.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-sqrt.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-tan.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
math-wrap.md feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00