카타 8급 Casting binary float to integer

Rust[ | ]

// return binary representation as i32
pub fn convert_to_i32(f: f32) -> i32 {
    f.to_bits() as i32
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}