I can't find an easy way to parse a string that was created using toFormat. I'd like to see a fromFormat function that does that (based on current configuration) and additionally an option to configure BigNumber to automatically parse the strings passed to the constructor. Something like this: BigNumber.config({ AUTO_PARSE: true });
Does this exist yet? In my case this is only about ignoring the groupSeparator and reading decimalSeparator as '.'. But it would also have to handle everything else in BigNumber.Format.
I can't find an easy way to parse a string that was created using
toFormat. I'd like to see afromFormatfunction that does that (based on current configuration) and additionally an option to configure BigNumber to automatically parse the strings passed to the constructor. Something like this:BigNumber.config({ AUTO_PARSE: true });Does this exist yet? In my case this is only about ignoring the
groupSeparatorand readingdecimalSeparatoras '.'. But it would also have to handle everything else inBigNumber.Format.