Skip to content

Number

In Navi Stream, number type to define a int or float number.

INFO

In internal, number actually is not a object, it's a primitive type. But we will plan to change it to a object in the future.

nvs
let a = 1;
let b = 2;

let c = a + b + 3;
// 6

c.to_string();
// "6"

Methods

to_string

Convert a number to a string.

nvs
let a = 1;
a.to_string();
// "1"