Search Results for

    Show / Hide Table of Contents

    Conversion

    ToBoolean

    Function Parameters Return value
    ToBoolean object value bool

    Converts the specified value to boolean.

    Example:

    ToBoolean(1) = true
    ToBoolean(0) = false
    

    ToByte

    Function Parameters Return value
    ToByte object value byte

    Converts the specified value to byte.

    Example:

    ToByte("55") = 55
    

    ToChar

    Function Parameters Return value
    ToChar object value char

    Converts the specified value to char.

    Example:

    ToChar(65) = 'A'
    

    ToDateTime

    Function Parameters Return value
    ToDateTime object value DateTime

    Converts the specified value to DateTime.

    The separators ., , and / are allowed.

    Example:

    ToDateTime("4.2.2024") = 04/02/2024 12:00:00 AM
    ToDateTime("4,2,2024") = 04/02/2024 12:00:00 AM
    ToDateTime("4/2/2024") = 04/02/2024 12:00:00 AM
    

    ToDecimal

    Function Parameters Return value
    ToDecimal object value decimal

    Converts the specified value to decimal.

    Example:

    ToDecimal(1) = 1m
    ToDecimal("1") = 1m
    

    ToDouble

    Function Parameters Return value
    ToDouble object value double

    Converts the specified value to double.

    Example:

    ToDouble(1) = 1
    ToDouble("1") = 1
    

    ToInt32

    Function Parameters Return value
    ToInt32 object value int

    Converts the specified value to int.

    Example:

    ToInt32(1f) = 1
    ToInt32("1") = 1
    

    ToRoman

    Function Parameters Return value
    ToRoman object value string

    Converts the specified numeric value to its roman representation. The value must be in range 1-3998.

    Example:

    ToRoman(9) = "IX"
    

    ToSingle

    Function Parameters Return value
    ToSingle object value float

    Converts the specified value to float.

    Example:

    ToSingle(1m) = 1f
    ToSingle("1") = 1f
    

    ToString

    Function Parameters Return value
    ToString object value string

    Converts the specified value to string.

    Example:

    ToString(false) = "False"
    ToString(DateTime.Now) = "04/02/2024 8:41:00 PM"
    

    ToWords

    Function Parameters Return value
    ToWords object value string

    Converts the specified currency value to words.

    Example:

    ToWords(1024.25) = "One thousand and twenty-four dollars and 25 cents"
    
    Function Parameters Return value
    ToWords object value, string currencyName string

    Converts the specified currency value to words. The currencyName parameter indicates the currency. Valid values for this parameter are:

    • "USD";
    • "EUR";
    • "GBP".

    Example:

    ToWords(1024.25, "EUR") = "One thousand and twenty-four euros and 25 cents"
    
    Function Parameters Return value
    ToWords object value, string one, string many string

    Converts the specified integer value to words. The one parameter contains the name in singular form; the many parameter contains the name in plural form.

    Example:

    ToWords(124, "page", "pages") = "One hundred and twenty-four pages"
    ToWords(1, "page", "pages") = "One page"
    

    ToWordsEnGb

    Function Parameters Return value
    ToWordsEnGb object value string

    Converts the specified currency value to words in Great Britain english. There are the following differences between this function and ToWords:

    • the GBP currency is used by default;
    • different words used when converting milliards and trilliards.

    Example:

    ToWordsEnGb(121) = "One hundred and twenty-one pounds and 00 pence"
    
    Function Parameters Return value
    ToWordsEnGb object value, string currencyName string

    Converts the specified currency value to words in Great Britain english. The currencyName parameter indicates the currency. Valid values for this parameter are:

    • "USD";
    • "EUR";
    • "GBP".

    Example:

    ToWordsEnGb(1024.25, "EUR") = "One thousand and twenty-four euros and 25 cents"
    
    Function Parameters Return value
    ToWordsEnGb object value, string one, string many string

    Converts the specified integer value to words in Great Britain english. The one parameter contains the name in singular form; the many parameter contains the name in plural form.

    Example:

    ToWordsEnGb(124, "page", "pages") = "One hundred and twenty-four pages"
    ToWordsEnGb(1, "page", "pages") = "One page"
    

    ToWordsRu

    Function Parameters Return value
    ToWordsRu object value string

    Converts the specified currency value to words in russian.

    Example:

    ToWordsRu(1024.25) = "Одна тысяча двадцать четыре рубля 25 копеек"
    
    Function Parameters Return value
    ToWordsRu object value, string currencyName string

    Converts the specified currency value to words in russian. The currencyName parameter indicates the currency. Valid values for this parameter are:

    • "RUR";
    • "UAH";
    • "USD";
    • "EUR".

    Example:

    ToWordsRu(1024.25, "EUR") = "Одна тысяча двадцать четыре евро 25 евроцентов"
    
    Function Parameters Return value
    ToWordsRu object value, bool male, string one, string two, string many string

    Converts the specified integer value to words in russian. The male parameter indicates the gender of the name. The one, two and five parameters contain a form of the name used with "1", "2" and "5" numbers.

    Example:

    // the "страница" word is of female gender, male = false
    ToWordsRu(122, false, "страница", "страницы", "страниц") = 
    "Сто двадцать две страницы"
    // the "лист" word is of male gender, male = true
    ToWordsRu(122, true, "лист", "листа", "листов") = 
    "Сто двадцать два листа"
    
    Back to top © 1998-2025 Copyright Fast Reports Inc.