|
Crystal provides an enormous number of built-in formatting options for dates, times, numbers, and strings. Sometimes, though, you just need to do your own thing! The custom formatting functions in the repository can help you do tasks like format date values, currency values, and string values in specialized ways:
cdFormatCurrencyUsingScaling Given a currency value, a decimal places value, a thousands symbol, and a millions symbol, returns a text string that represents the currency using the symbols.
cdFormatDateRange Given a date range, converts to a text string and returns a formatted string that includes phrases like "less than."
cdFormatDateRangeArray Given a date range, returns a formatted list of text dates separated by carriage return linefeeds (new lines).
cdFormatNumberRange Given a range of numbers, converts to a text string and returns a formatted string that includes phrases like "less than."
cdFormatNumberRangeArray Given a range of numbers, converts to a text string and returns a list of text numbers separated by carriage return linefeeds (new lines).
cdFormatNumberUsingScaling Given a number value, a decimal places value, a thousands symbol, and a millions symbol, returns a text string that represents the number using the symbols.
cdFormatStringRange Given a range of string data, returns a formatted string that includes phrases like "less than."
cdFormatStringRangeArray Given a range of strings, returns a list of text separated by carriage return linefeeds (new lines).
cdFormatTimeInterval Given a numeric time interval, a base unit string, a rounding string, a days symbol string, an hours symbol string, and a minutes symbol string, returns a string that formats the time interval using the input parameters.
Use of content on this site is expressly subject to the restrictions set forth in the Membership Agreement | |
Conello © 2000-2003 Feedback |