Package com.independentsoft.calc.engine

# Class Coercion

java.lang.Object
com.independentsoft.calc.engine.Coercion

public final class Coercion extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static int`
  `compare​(CalcValue a, CalcValue b)`
  `static int`
  `compareDoubles​(double x, double y)`
  `static String`
  `numberToText​(double d)`
  `static double`
  `roundSig15​(double d)`
  `static String`
  `toDisplayText​(CalcValue v)`
  `static CalcValue`
  `toLogical​(CalcValue v)`
  `static CalcValue`
  `toNumber​(CalcValue v, boolean date1904)`
  `static boolean`
  `tryTextToNumber​(String text, boolean date1904, OutDouble result)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### numberToText

    public static String numberToText​(double d)

  - ### tryTextToNumber

    public static boolean tryTextToNumber​(String text, boolean date1904, OutDouble result)

  - ### toNumber

    public static CalcValue toNumber​(CalcValue v, boolean date1904)

  - ### toLogical

    public static CalcValue toLogical​(CalcValue v)

  - ### toDisplayText

    public static String toDisplayText​(CalcValue v)

  - ### compareDoubles

    public static int compareDoubles​(double x, double y)

  - ### roundSig15

    public static double roundSig15​(double d)

  - ### compare

    public static int compare​(CalcValue a, CalcValue b)