MaybeFuzzy

com.phasmidsoftware.number.algebra.core.MaybeFuzzy
See theMaybeFuzzy companion trait
object MaybeFuzzy

Provides extension methods for the MaybeFuzzy trait to render its properties in absolute (scientific) form.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MaybeFuzzy.type

Members list

Extensions

Extensions

extension (m: MaybeFuzzy)
def asAbsolute: String

Converts the value of the current instance into its absolute String representation, always using scientific notation (e.g. "1.00(1)E+02").

Converts the value of the current instance into its absolute String representation, always using scientific notation (e.g. "1.00(1)E+02").

If fuzziness is present, it normalizes it to absolute form and formats it in scientific notation with embedded uncertainty digits. If no fuzziness is present, the nominal value is returned as rendered by m.render.

Attributes

Returns

A string in scientific notation with absolute uncertainty, or the nominal value if no fuzziness is associated.