{"version":3,"file":"_isTypeFloat.mjs","names":[],"sources":["../../src/internal/_isTypeFloat.ts"],"sourcesContent":["/**\n * Test whether a number is within the 32-bit float range; fractions are\n * allowed.\n *\n * @evidence contracts/common.md#principled-implementation A value is a 32-bit float when it is within the single-precision range, which the two bounds express; fractions are allowed and NaN and the infinities fail the comparison. The bound literal is the decimal text of the maximum, so values that only round to it are accepted.\n * @evidence contracts/common.md#clear-and-simple-design One expression and two constants.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The bounds are the format's.\n * @evidence contracts/common.md#meaningful-documentation A comment states the range and that fractions are allowed.\n */\nexport const _isTypeFloat = (value: number): boolean =>\n  MINIMUM <= value && value <= MAXIMUM;\n\nconst MINIMUM = -3.4028235e38;\nconst MAXIMUM = 3.4028235e38;\n"],"mappings":";;;;;;;;;;AASA,MAAa,gBAAgB,UAC3B,WAAW,SAAS,SAAS;AAE/B,MAAM,UAAU;AAChB,MAAM,UAAU"}