Package com.alibaba.fastjson2.util
Class DoubleToDecimal
java.lang.Object
com.alibaba.fastjson2.util.DoubleToDecimal
This class exposes a method to render a
double as a string.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inttoString(double v, byte[] bytes, int off, boolean json) static inttoString(double v, char[] chars, int off, boolean json) static inttoString(float v, byte[] bytes, int off, boolean json) static inttoString(float v, char[] chars, int off, boolean json)
-
Constructor Details
-
DoubleToDecimal
public DoubleToDecimal()
-
-
Method Details
-
toString
public static int toString(double v, byte[] bytes, int off, boolean json) -
toString
public static int toString(double v, char[] chars, int off, boolean json) -
toString
public static int toString(float v, byte[] bytes, int off, boolean json) -
toString
public static int toString(float v, char[] chars, int off, boolean json)
-