/

Number KIT

Description and examples API Helpers
Despite the name of the mask, the element's raw value remains of type string !

Use the helpers below to perform stringnumber conversions seamlessly.

maskitoParseNumber

  • By default, returns number type value
  • Also, supports bigint mode
Always pass the second argument to the utility if your number format parameters differ from the default ones to ensure correct parsing and avoid unexpected results!
    
    

maskitoStringifyNumber

Works with both number and bigint types.