This shows you the differences between two versions of the page.
| logicpython:cubloc_api:dp [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:dp [2026/04/10 04:21] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== DP ====== | ||
| - | |||
| - | Convert an integer to a right-justified decimal string. | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import DP | ||
| - | |||
| - | DP(value: int, numberOfDigits: | ||
| - | </ | ||
| - | |||
| - | ===== Parameters ===== | ||
| - | |||
| - | * **value**: Integer to format. | ||
| - | * **numberOfDigits**: | ||
| - | * **zeroPrint**: | ||
| - | |||
| - | ===== Return Value ===== | ||
| - | |||
| - | Returns a right-justified decimal string padded with spaces or zeros according to '' | ||
| - | |||
| - | ===== Exceptions ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | ===== Example ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import DP | ||
| - | |||
| - | # Example usage | ||
| - | result = DP(1, 1, 1) | ||
| - | print(result) | ||
| - | </ | ||
| - | |||
| - | ===== Related APIs ===== | ||
| - | |||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||