Render

com.phasmidsoftware.number.core.inner.Render
object Render

The Render object provides functionality to render various value types as a formatted string, along with a flag indicating whether the value could be rendered exactly or approximately.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Render.type

Members list

Value members

Concrete methods

def renderValue(v: Value, exact: Boolean = ...): (String, Boolean)

Method to render a Value as a tuple of String and Boolean where the latter represents whether we were able to render the value exactly or not.

Method to render a Value as a tuple of String and Boolean where the latter represents whether we were able to render the value exactly or not.

Value parameters

exact

true if the Value is exact.

v

the Value to be rendered.

Attributes

Returns

a tuple of String and Boolean. If the value is an Int or a Rational, then the Boolean returned is true; otherwise, it's false.