mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: improve -skip-unused, track consts, walk all AST nodes, support tests
This commit is contained in:
@ -26,7 +26,7 @@ pub fn (d float_literal) str() string {
|
||||
return f64(d).str()
|
||||
}
|
||||
|
||||
// strsci returns the `f64` as a `string` in scientific notation with `digit_num` deciamals displayed, max 17 digits.
|
||||
// strsci returns the `f64` as a `string` in scientific notation with `digit_num` decimals displayed, max 17 digits.
|
||||
// Example: assert f64(1.234).strsci(3) == '1.234e+00'
|
||||
[inline]
|
||||
pub fn (x f64) strsci(digit_num int) string {
|
||||
|
Reference in New Issue
Block a user