Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust ceil

let a: f32 = 3.2;
let b: usize = 2;

let c = (a / b as f32).ceil(); // c = 2.0
 
PREVIOUS NEXT
Tagged: #rust #ceil
ADD COMMENT
Topic
Name
6+9 =