Number
Bnlang provides the number constructor and helpers under Number, সংখ্যা, and Sonkha.
It contains constants, type-checking methods, parsing utilities, and prototype formatting methods.
Constants
MAX_VALUE,MIN_VALUE,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,POSITIVE_INFINITY,NEGATIVE_INFINITY,EPSILON,NaN
Static Methods
Number.isFinite(x),Number.isInteger(x),Number.isNaN(x),Number.isSafeInteger(x)Number.parseInt(str),Number.parseFloat(str)
Prototype Methods
toFixed(d),toPrecision(d),toExponential(d)toString(),toLocaleString(),valueOf()
Examples
কনসোল.লগ(সংখ্যা.সর্বোচ্চ_নিরাপদ_পূর্ণসংখ্যা);
কনসোল.লগ(সংখ্যা.পূর্ণসংখ্যা_কি(42)); // true
কনসোল.লগ((3.14159).দশমিক_স্থির(2)); // "3.14"