CsvRendererDouble
CsvRendererDouble is an implicit object that provides a mechanism to render instances of type Double into a CSV (Comma-Separated Values) format. It extends the StandardCsvRenderer abstract class, inheriting its generic rendering capabilities, and specializes the functionality for Double values.
This implicit object allows seamless and type-safe rendering of Doubles into strings formatted for CSV output by leveraging Scala's implicit resolution mechanism.
Example usage:
import CsvRenderers._
val value: Double = 123.456
val renderedValue: String = CsvRendererDouble.render(value)
println(renderedValue) // Output: "123.456"
The CsvRendererDouble relies on the default implementation of render in the StandardCsvRenderer class, where the Double is converted to its string representation. Custom attributes influencing the rendering may be passed via a map, though they are unused in the default implementation.
Attributes
- See also
-
com.phasmidsoftware.tableparser.core.render.StandardCsvRenderer
- Graph
-
- Supertypes
- Self type
-
CsvRendererDouble.type