Rust numerical types



examples/numbers/number-types/src/main.rs
#![allow(clippy::approx_constant)]

fn main() {
    let number = 139871;
    println!("{number}");

    let number: i8 = 100;
    println!("{number}");

    let number: u8 = 255;
    println!("{number}");

    let number = 300_000_000;
    println!("{number}");

    let number: i64 = 3_000_000_000;
    println!("{number}");

    let number = 3.14;
    println!("{number}");

    let number: f32 = 3.14;
    println!("{number}");
}

139871
100
255
300000000
3000000000
3.14
3.14