Class DoubleToDecimal
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.io.schubfach.DoubleToDecimal
This class exposes a method to render a
double
as a string.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Appendable
appendTo
(double v, Appendable app) Appends the rendering of thev
toapp
.static String
toString
(double v) Returns a string representation of thedouble
argument.
-
Field Details
-
MAX_CHARS
public static final int MAX_CHARS- See Also:
-
-
Method Details
-
toString
Returns a string representation of thedouble
argument. All characters mentioned below are ASCII characters.- Parameters:
v
- thedouble
to be converted.- Returns:
- a string representation of the argument.
- See Also:
-
appendTo
Appends the rendering of thev
toapp
.The outcome is the same as if
v
were firstrendered
and the resulting string were thenappended
toapp
.- Parameters:
v
- thedouble
whose rendering is appended.app
- theAppendable
to append to.- Throws:
IOException
- If an I/O error occurs
-