File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
33module builtin
44
5- // TODO: implement compile time conditional include
6- // [if !nofloat]
7- import strconv
5+ $if ! nofloat ? {
6+ import strconv
7+ }
88
99$if ! native {
1010 #include <float.h>
1111}
1212
13- /*
14- -----------------------------------
15- ----- f64 to string functions -----
16- */
17- // str return a `f64` as `string` in suitable notation.
13+ // str returns a string representation of the given `f64` in a suitable notation.
1814@[inline]
1915pub fn (x f64) str () string {
2016 unsafe {
@@ -36,7 +32,7 @@ pub fn (x f64) str() string {
3632 }
3733}
3834
39- // strg return a `f64` as `string` in "g" printf format
35+ // strg return a `f64` as `string` in "g" printf format.
4036@[inline]
4137pub fn (x f64) strg () string {
4238 if x == 0 {
You can’t perform that action at this time.
0 commit comments