Back to Website
Show / Hide Table of Contents

Class NumericValue

Package: @aurigma/design-atoms-text

Constructors

(constructor)(value, unit)

Constructs a new instance of the NumericValue class

Declaration
constructor(value?: number, unit?: Units);
Parameters
Type Name Description
number value
Units unit

Properties

unit

Declaration
unit: Units;
Property Value
Type Description
Units

value

Declaration
value: number;
Property Value
Type Description
number

Methods

equals(other, tolerance)

Declaration
equals(other: NumericValue, tolerance?: number): boolean;
Parameters
Type Name Description
NumericValue other
number tolerance
Returns
Type Description
boolean

equals(a, b, tolerance)

Declaration
static equals(a: NumericValue, b: NumericValue, tolerance?: number): boolean;
Parameters
Type Name Description
NumericValue a
NumericValue b
number tolerance
Returns
Type Description
boolean

toString()

Declaration
toString(): string;
Returns
Type Description
string
Was this page helpful?
Thanks for your feedback!
In This Article
  • Constructors
    • (constructor)(value, unit)
  • Properties
    • unit
    • value
  • Methods
    • equals(other, tolerance)
    • equals(a, b, tolerance)
    • toString()
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback