From ddc11c6e63c144beaf28cd66c61faf11028346a3 Mon Sep 17 00:00:00 2001 From: Ryan <30853424+totally-not-frito-lays@users.noreply.github.com> Date: Mon, 16 Jun 2025 18:59:08 -0700 Subject: [PATCH] added infinity --- libs/base/math.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/base/math.ts b/libs/base/math.ts index 3fdde1da..d4c2e872 100644 --- a/libs/base/math.ts +++ b/libs/base/math.ts @@ -23,6 +23,9 @@ namespace Math { //% blockIdentity="Math._constant" //% block="√2" export const SQRT2 = 1.4142135623730951; + //% blockIdentity="Math._constant" + //% block="∞" + export const INFINITY = 1.7976931348623157e+308; /** * Re-maps a number from one range to another. That is, a value of ``from low`` would get mapped to ``to low``, a value of ``from high`` to ``to high``, values in-between to values in-between, etc.