Skip to content

Commit

Permalink
Update nan_boxing_pointer to print double float using 17 decimal di…
Browse files Browse the repository at this point in the history
…gits

Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Aug 16, 2022
1 parent 2aef62b commit dc1157d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|:-------------------|:--
| `all` (default) | Build shared-library `libmeevax.0.4.208.so` and executable `meevax`.
| `all` (default) | Build shared-library `libmeevax.0.4.209.so` and executable `meevax`.
| `test` | Test executable `meevax`.
| `package` | Generate debian package `meevax_0.4.208_amd64.deb`.
| `package` | Generate debian package `meevax_0.4.209_amd64.deb`.
| `install` | Copy files into `/usr/local` __(1)__.
| `install.deb` | `all` + `package` + `sudo apt install <meevax>.deb`
| `safe-install.deb` | `all` + `test` + `package` + `sudo apt install <meevax>.deb`
Expand All @@ -122,7 +122,7 @@ __(1)__ Meevax installed by `make install` cannot be uninstalled by the system's
## Usage

```
Meevax Lisp System, version 0.4.208
Meevax Lisp System, version 0.4.209
Usage: meevax [OPTION...] [FILE...]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.208
0.4.209
2 changes: 1 addition & 1 deletion include/meevax/memory/nan_boxing_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ inline namespace memory
}
else
{
return os << yellow(value);
return os << std::fixed << std::setprecision(17) << yellow(value);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/nan_boxing_pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ auto main() -> int
}

{
assert(lexical_cast<external_representation>(make<double>(3.14)) == "3.14");
assert(lexical_cast<external_representation>(make<double>(3.14)) == "3.14000000000000012");
assert(lexical_cast<external_representation>(make<std::int32_t>(42)) == "42");
}

Expand Down

0 comments on commit dc1157d

Please sign in to comment.