1
0
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:
Delyan Angelov
2021-02-07 01:01:37 +02:00
parent 26121d5ae7
commit d77bb2f606
12 changed files with 410 additions and 95 deletions

View File

@ -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 {