diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-06-03 12:09:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 12:09:40 +0200 |
commit | daaa40973c65c46f8d38dc6033f56fffcd7d8d3f (patch) | |
tree | 19cd2f3a76e62153dcbf25c400f25e5aa75adae9 /lib/system/dollars.nim | |
parent | 06960bb9cb6bb548c8f72882169ae65e14f29e89 (diff) | |
download | Nim-daaa40973c65c46f8d38dc6033f56fffcd7d8d3f.tar.gz |
added float32 schubfach algorithm; wip (#18155)
* added float32 schubfach algorithm; wip * fixes #18418
Diffstat (limited to 'lib/system/dollars.nim')
-rw-r--r-- | lib/system/dollars.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system/dollars.nim b/lib/system/dollars.nim index ce4e8e0ca..5a7a77e56 100644 --- a/lib/system/dollars.nim +++ b/lib/system/dollars.nim @@ -58,6 +58,10 @@ proc `$`*(x: float): string {.magic: "FloatToStr", noSideEffect.} ## The stringify operator for a float argument. Returns `x` ## converted to a decimal string. +proc `$`*(x: float32): string {.magic: "FloatToStr", noSideEffect.} + ## The stringify operator for a float32 argument. Returns `x` + ## converted to a decimal string. + proc `$`*(x: bool): string {.magic: "BoolToStr", noSideEffect.} ## The stringify operator for a boolean argument. Returns `x` ## converted to the string "false" or "true". |