public class NumberToJSON extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
serializeNumber(double value)
Formats a number according to ES6.
|
public static String serializeNumber(double value) throws IOException
This code is emulating 7.1.12.1 of the EcmaScript V6 specification.
value - Value to be formattedIOException - Copyright © 2018. All rights reserved.