UNPKG

@stdlib/utils-safe-int-min

Version:

Return the minimum safe integer capable of being represented by a numeric real type.

6 lines (5 loc) 602 B
"use strict";var i=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var a=i(function(l,t){ var u=require('@stdlib/error-tools-fmtprodmsg/dist'),s=require('@stdlib/constants-float16-min-safe-integer/dist'),n=require('@stdlib/constants-float32-min-safe-integer/dist'),o=require('@stdlib/constants-float64-min-safe-integer/dist');function c(r){switch(r){case"float64":return o;case"float32":return n;case"float16":return s;default:throw new TypeError(u('1XVBn',r))}}t.exports=c });var f=a();module.exports=f; /** @license Apache-2.0 */ //# sourceMappingURL=index.js.map