Class DoubleToDecimal

java.lang.Object
com.alibaba.fastjson2.util.DoubleToDecimal

public final class DoubleToDecimal extends Object
This class exposes a method to render a double as a string.
  • 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)