API ReferenceGlobalsKernelUnitFormatter

# Interface: KernelUnitFormatter

# Hierarchy

  • KernelUnitFormatter

# Index

# Methods

# Methods

# formatMMValueToUnitString

formatMMValueToUnitString(aValue: number, aUnit: number, aStringType: number): string

Defined in packages/configurator-core/src/services/unit-formatter.ts:66

Parameters:

Name Type
aValue number
aUnit number
aStringType number

Returns: string


# formatMMValueWithReqMaxLength

formatMMValueWithReqMaxLength(aValue: number, aUnit: number, reqMaxSize: number): string

Defined in packages/configurator-core/src/services/unit-formatter.ts:68

Parameters:

Name Type
aValue number
aUnit number
reqMaxSize number

Returns: string


# formatNumber

formatNumber(aValue: number, digit: number): string

Defined in packages/configurator-core/src/services/unit-formatter.ts:62

Parameters:

Name Type
aValue number
digit number

Returns: string


# formatSquareMMValueToUnitString

formatSquareMMValueToUnitString(aValue: number, aUnit: number): string

Defined in packages/configurator-core/src/services/unit-formatter.ts:64

Parameters:

Name Type
aValue number
aUnit number

Returns: string


# isParseableNumber

isParseableNumber(aString: string): boolean

Defined in packages/configurator-core/src/services/unit-formatter.ts:54

Parameters:

Name Type
aString string

Returns: boolean


# isParseableUnitString

isParseableUnitString(aString: string, aUnit: number): boolean

Defined in packages/configurator-core/src/services/unit-formatter.ts:56

Parameters:

Name Type
aString string
aUnit number

Returns: boolean


# parseMMValueFromUnitString

parseMMValueFromUnitString(aString: string, aUnit: number): number

Defined in packages/configurator-core/src/services/unit-formatter.ts:58

Parameters:

Name Type
aString string
aUnit number

Returns: number


# parseNumber

parseNumber(aString: string): number

Defined in packages/configurator-core/src/services/unit-formatter.ts:60

Parameters:

Name Type
aString string

Returns: number