> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Format

public class [Format](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format.md) : [PHXCOMObject](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object.md)

This is the wrapper class for formatting

#### Author

Fraley, 1-2004

## Functions

| Name | Summary |
| - | - |
| [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c) | public [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c)(gc: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) If true, prevents releaseObjects from doing anything. |
| [doubleToEditableString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/double-to-editable-string) | public [doubleToEditableString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/double-to-editable-string)(val: [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts a double to its formatted string representation but with full precision for editing |
| [doubleToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/double-to-string) | public [doubleToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/double-to-string)(val: [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts a double to its formatted string representation |
| [getFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/get-format) | public [getFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/get-format)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Return to format's string representation |
| [longToEditableString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/long-to-editable-string) | public [longToEditableString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/long-to-editable-string)(val: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts a long to its formatted string representation but with full precision for editing |
| [longToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/long-to-string) | public [longToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/long-to-string)(val: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts a long to its formatted string representation |
| [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release) | public [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release)() Releases the COM reference to ModelCenter for this object. |
| [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects) | public [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects)() This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them. |
| [setFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/set-format) | public [setFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/set-format)(format: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the format string |
| [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode) | public [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode)(on: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked. |
| [stringToDouble](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-double) | public [stringToDouble](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-double)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) Converts a string representing a number in the given format to a real number |
| [stringToLong](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-long) | public [stringToLong](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-long)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) Converts a string representing a number in the given format to an integer number |
| [stringToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-string) | public [stringToString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2026-r1/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-format/string-to-string)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) Converts a string to its formatted string representation |
