{"id":57490,"library":"half","title":"Half","description":"Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types.","status":"active","version":"2.7.1","language":"rust","source_language":null,"source_url":"https://github.com/VoidStarKat/half-rs","tags":["float","half-precision","f16","bf16","numerics"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nhalf = \"2.7.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add half","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"f16","correct":"use half::f16;"}],"quickstart":{"code":"use half::f16;\n\nfn main() {\n    let a = f16::from_f32(3.14);\n    println!(\"f16 value: {}\", a.to_f32());\n}","lang":"rust","description":"Converts a 32-bit float to half-precision and back."},"warnings":[],"env_vars":null,"search_vec":"'-2008':17 '754':16 'bf16':9,28 'bfloat16':21 'binary16':19 'f16':7,27 'float':5,23 'half':1,3,25 'half-precis':2,24 'ieee':15 'implement':13 'numer':29 'point':6 'precis':4,26 'rust':12 'standard':18 'type':10,22","created_at":"2026-06-16T15:44:21.428330+00:00","updated_at":"2026-06-16T15:44:21.428330+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/VoidStarKat/half-rs","github":"https://github.com/VoidStarKat/half-rs","docs":"https://docs.rs/half/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}