ScientificNotationParser

The ScientificNotationParser class is a useful tool class to get a numeric value without scientific notation



          // without use ScientificNotationParser
             double number = 0.0000092221111228;
             System.out.println(number); // --> 9.2221111228E-6

          // using ScientificNotationParser
             double number = 0.0000092221111228;
             System.out.println(ScientificNotationParser.sNotationParse(number));
             // --> 0.0000092221111228
    

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun sNotationParse(value: Number): String
open fun sNotationParse(decimals: Int, value: Number): String
open fun sNotationParse(integers: Int, decimals: Int, value: Number): String
Method to parse a numeric value and format without scientific notation