Search
 
SCRIPT & CODE EXAMPLE
 

RUST

minimum and maximum numbers for various integer types

fn main() {
    println!("The smallest i8 is {} and the biggest i8 is {}.", std::i8::MIN, std::i8::MAX); // hint: printing std::i8::MIN means "print MIN inside of the i8 section in the standard library"
    println!("The smallest u8 is {} and the biggest u8 is {}.", std::u8::MIN, std::u8::MAX);
    println!("The smallest i16 is {} and the biggest i16 is {}.", std::i16::MIN, std::i16::MAX);
    println!("The smallest u16 is {} and the biggest u16 is {}.", std::u16::MIN, std::u16::MAX);
    println!("The smallest i32 is {} and the biggest i32 is {}.", std::i32::MIN, std::i32::MAX);
    println!("The smallest u32 is {} and the biggest u32 is {}.", std::u32::MIN, std::u32::MAX);
    println!("The smallest i64 is {} and the biggest i64 is {}.", std::i64::MIN, std::i64::MAX);
    println!("The smallest u64 is {} and the biggest u64 is {}.", std::u64::MIN, std::u64::MAX);
    println!("The smallest i128 is {} and the biggest i128 is {}.", std::i128::MIN, std::i128::MAX);
    println!("The smallest u128 is {} and the biggest u128 is {}.", std::u128::MIN, std::u128::MAX);
}
Comment

PREVIOUS NEXT
Code Example
Rust :: armanriazi•rust•rc•vs•refcell 
Rust :: armanriazi•rust•thread•multi•arc•mutex 
Rust :: rust•armanriazi•let•const 
Rust :: how to get public addres from private key solana cli 
Rust :: rust•armanriazi•slice•vs•char•vec 
Rust :: armanriazi•rust•error•E0501•cannot borrow `x` as immutable because previous closure requires unique access 
Rust :: armanriazi•rust•function•vs•closure 
Rust :: rust tuple vs vec 
Rust :: rust empty vector 
Lua :: roblox rainbow part 
Lua :: how to comment multiple lines in lua 
Lua :: lua round number 
Lua :: roblox how to make debounce 
Lua :: Pass values to functions from Onclicks roblox 
Lua :: roblox random part color 
Lua :: continue in lua 
Lua :: do while lua 
Lua :: change material roblox lua 
Lua :: countif excel 
Lua :: shift to sprint 
Lua :: roblox add attribute 
Lua :: lua pairs 
Lua :: check if play is in group 
Matlab :: num to string matlab 
Matlab :: matlab preallocate array size 
Matlab :: octave a:b:c range 
Basic :: basic authentication in REST api Dajngo 
Elixir :: elixir try rescue 
Elixir :: elixir enum chunk_every 
Scala :: scala Datetime parse 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =