Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Multiplying a u64 to u128 in Rust

//convert either u128 or u64 to the other compatible type 
//Use 'as u64' or 'as u128'

this_is_a_u128_num * (this_is_a_u64_num as u128)
 
PREVIOUS NEXT
Tagged: #Multiplying #Rust
ADD COMMENT
Topic
Name
4+7 =