Table of Contents

ToString Method

Definition

Namespace
Codebelt.Unitify
Assemblies
Codebelt.Unitify.dll
Source
src/Codebelt.Unitify/DataPrefixTable.cs

ToString()

Returns a string that represents the largest multiple prefix of this instance.

public override string ToString()

Returns

string

A string that represents the largest multiple prefix of this instance.

Remarks

Evaluates the largest multiple prefix that is greater or equal to 1 and returns it formatted as Binary.

ToString(PrefixStyle)

Returns a string that represents the largest multiple prefix of this instance.

public string ToString(PrefixStyle prefixStyle)

Parameters

prefixStyle PrefixStyle

The preferred unit prefix style for formatting.

Returns

string

A string that represents the largest multiple prefix of this instance.

Remarks

Evaluates the largest metric-multiple prefix that is greater or equal to 1 and returns it formatted as either Binary or Decimal.