This module implements formatting floats as strings.
Procs
proc addFloatSprintf(result: var string; x: float) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc writeFloatToBuffer(buf: var array[65, char]; value: BiggestFloat | float32): int {. inline.}
- Source Edit
proc writeFloatToBufferRoundtrip(buf: var array[65, char]; value: BiggestFloat): int {. ...raises: [], tags: [], forbids: [].}
-
This is the implementation to format floats.
returns the amount of bytes written to buf not counting the terminating '0' character.
Source Edit proc writeFloatToBufferSprintf(buf: var array[65, char]; value: BiggestFloat): int {. ...raises: [], tags: [], forbids: [].}
-
This is the implementation to format floats.
returns the amount of bytes written to buf not counting the terminating '0' character.
Source Edit