mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: new string interpolation in pure V (#10181)
This commit is contained in:
@@ -25,6 +25,33 @@ pub enum Align_text {
|
||||
Float conversion utility
|
||||
|
||||
*/
|
||||
const(
|
||||
// rounding value
|
||||
dec_round = [
|
||||
f64(0.5),
|
||||
0.05,
|
||||
0.005,
|
||||
0.0005,
|
||||
0.00005,
|
||||
0.000005,
|
||||
0.0000005,
|
||||
0.00000005,
|
||||
0.000000005,
|
||||
0.0000000005,
|
||||
0.00000000005,
|
||||
0.000000000005,
|
||||
0.0000000000005,
|
||||
0.00000000000005,
|
||||
0.000000000000005,
|
||||
0.0000000000000005,
|
||||
0.00000000000000005,
|
||||
0.000000000000000005,
|
||||
0.0000000000000000005,
|
||||
0.00000000000000000005,
|
||||
]
|
||||
)
|
||||
|
||||
/*
|
||||
const(
|
||||
// rounding value
|
||||
dec_round = [
|
||||
@@ -50,7 +77,7 @@ const(
|
||||
0.000000000000000000044,
|
||||
]
|
||||
)
|
||||
|
||||
*/
|
||||
// max float 1.797693134862315708145274237317043567981e+308
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user