Format2
Last update: 16.07.2025public class Format2
This is the wrapper class for formatting. This second iteration does not use the COM API under the hood and is safe to use in some cases when COM is not.
Author
Gaurav, 2010
Constructors
| Format2 | constructor(strFormat: String)constructor() |
Functions
| Name | Summary |
|---|---|
| _setFormat | public _setFormat(strFormat: String) sets the format string |
| doubleToEditableString | public doubleToEditableString(val: Double): String Converts a double to its formatted string representation but with full precision for editing |
| doubleToString | public doubleToString(val: Double): String Converts a double to its formatted string representation |
| longToEditableString | public longToEditableString(val: Long): String Converts a long to its formatted string representation but with full precision for editing |
| longToString | public longToString(val: Long): String Converts a long to its formatted string representation |
| stringToDouble | public stringToDouble(str: String): Double Converts a string representing a number in the given format to a real number |
| stringToLong | public stringToLong(str: String): Long Converts a string representing a number in the given format to an integer number |
| stringToString | public stringToString(str: String): String Converts a string to its formatted string representation |