diff --git a/107-Integers/integers.gop b/107-Integers/integers.gop index cdf9412..20a559e 100644 --- a/107-Integers/integers.gop +++ b/107-Integers/integers.gop @@ -10,11 +10,16 @@ // For int 20 values can also be expressed in hex (0x14), octal (0o24), and binary notation (0b0010100). // uint, there are no uint literals. All literal whole numbers are treated as int values. // -// Go+ also supports writing numbers with _ as separator: +// Go+ also supports writing numbers with _ as separator and also support cast bool to number types. +// As example shows num := 1_000_000 //Go+ support, same as 1000000 println num +println int(true) //Go+ support cast bool to int +println float64(true) //and to float64 +println complex64(true) //and to complex64, and so on. + println 20+20 println 20+30 println 0x14 //in hex