Table of Contents

Class Number

Namespace
PHCLibrary.Utils
Assembly
PHCLibrary.dll
public class Number
Inheritance
Number

Methods

GetCurrencyValue(string, ref string)

[Obsolete("Use GetSafeCurrencyFormat extension")]
public static string GetCurrencyValue(string currencyValue, ref string decimalSeparator = null)

Parameters

Nome Tipo Descrição
currencyValue string
decimalSeparator string

Returns

string

GetSepDecimal(string)

public static string GetSepDecimal(string strNumber)

Parameters

Nome Tipo Descrição
strNumber string

Returns

string

GetValueOf(string, string)

public static int GetValueOf(string enumName, string enumConst)

Parameters

Nome Tipo Descrição
enumName string
enumConst string

Returns

int

GetValueOf(Type, string)

public static int GetValueOf(Type enumType, string enumConst)

Parameters

Nome Tipo Descrição
enumType Type
enumConst string

Returns

int

Round(decimal)

[Obsolete("Use RoundAwayZero extension")]
public static decimal Round(decimal value)

Parameters

Nome Tipo Descrição
value decimal

Returns

decimal

Round(decimal, int)

[Obsolete("Use RoundAwayZero extension")]
public static decimal Round(decimal value, int decimals)

Parameters

Nome Tipo Descrição
value decimal
decimals int

Returns

decimal

Round(double)

[Obsolete("Use RoundAwayZero extension")]
public static double Round(double value)

Parameters

Nome Tipo Descrição
value double

Returns

double

Round(double, int)

[Obsolete("Use RoundAwayZero extension")]
public static double Round(double value, int decimals)

Parameters

Nome Tipo Descrição
value double
decimals int

Returns

double

valDecimal(string, ref bool)

[Obsolete("Use ToDecimal extension")]
public static decimal valDecimal(string value, ref bool lError = false)

Parameters

Nome Tipo Descrição
value string
lError bool

Returns

decimal

valDouble(string, ref bool)

[Obsolete("Use ToDouble extension")]
public static double valDouble(string value, ref bool lError = false)

Parameters

Nome Tipo Descrição
value string
lError bool

Returns

double

valInteger(string, ref bool)

[Obsolete("Use ToInteger extension")]
public static int valInteger(string value, ref bool lError = false)

Parameters

Nome Tipo Descrição
value string
lError bool

Returns

int