Product
Solutions
Services
Implement
Partners
Careers
Support
Home
Product
News
News Archive
Product
Overview
Our Philosophy
Key Functionality
Technology
Roadmap
Release Notes
Why Genus Apps
Why Upgrade
White Paper
News
News Archive
Help Documentation
<< Previous
|
Back to list
|
Next >>
Converting a Numeric Value to a String using a Format Specifier
04/07/2012 by Jan Petter Bergfjord
Support for specifying a format when converting a numeric value to a string introduced in the
Genus Logix Language
. Available for the numeric types Integer, LargeInteger and Real.
Syntax:
instance.toString(format, culture)
Description:
Converts the numeric value to its equivalent string representation using the specified format and culture-specific format information.
Arguments:
format
Type: String
A numeric format string. For more details, see the MSDN articles "Standard Numeric Format
strings" (
http://msdn.microsoft.com/library/dwhawy9k
) and "Custom Numeric Format Strings" (
http://msdn.microsoft.com/library/0c899ak8
).
culture
Type: String
The culture name. A NULL value or empty string is interpreted as InvariantCulture, while a single dash "-" is interpreted as CurrentCulture. Otherwise, the value indicates the name of a culture. Culture is not case-sensitive. For a list of predefined culture names, see the National Language Support (NLS) API Reference (
http://go.microsoft.com/fwlink/?LinkId=200048
).