User Tools

Site Tools

한국어

logicpython:cubloc_api:float

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:float [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:float [2026/04/10 04:20] (current) – removed mfranklin
Line 1: Line 1:
-====== Float ====== 
- 
-Convert a numeric ''value'' to a fixed-point string with 5 decimal places. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import Float 
- 
-Float(value: int | float) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **value**: Integer or floating-point ''value''. 
- 
-===== Return Value ===== 
- 
-Returns the numeric ''value'' formatted as fixed-point text with 5 decimal places. 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: ''value'' is not numeric. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import Float 
- 
-# Example usage 
-result = Float(1) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:decn|DecN]] 
-  * [[logicpython:cubloc_api:dp|DP]] 
-  * [[logicpython:cubloc_api:fp|FP]] 
-  * [[logicpython:cubloc_api:hexn|HexN]] 
-  * [[logicpython:cubloc_api:hp|HP]] 
  
logicpython/cubloc_api/float.1775786798.txt.gz · Last modified: by 127.0.0.1