Namespace: Consultingwerk
Class 
NumberFormatterEnglish Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.INumberFormatter

File:NumberFormatterEnglish
Purpose:Supports formatting numbers as human readable English strings
Description:Based on http://rosettacode.org/wiki/Number_names#C.23
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jan 18 21:13:51 CET 2015



Top Method Summary
Options Name Purpose
+ CHARACTER FormatNumber (integer) Formats a number as a string
# CHARACTER ParseTriplet (decimal) Formats a number triplet as a string
# INTEGER RoundNumber (decimal) Rounds a number down to the closest lower integer number


Method Detail
Top

PUBLIC CHARACTER FormatNumber (integer)

Purpose: Formats a number as a string
Notes:

Parameters:
piNumber INTEGER
The number to format
Returns CHARACTER
The string representing the number in a human readable form
Top

PROTECTED CHARACTER ParseTriplet (decimal)

Purpose: Formats a number triplet as a string
Notes:

Parameters:
piNumber DECIMAL
The number to format
Returns CHARACTER
The string representing the number in a human readable form
Top

PROTECTED INTEGER RoundNumber (decimal)

Purpose: Rounds a number down to the closest lower integer number
Notes:

Parameters:
piNumber DECIMAL
The number to round
Returns INTEGER
The rounded number


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:28:03