C++ library for half precision floating point arithmetics.

Add a Review
25 Downloads (This Week)
Last Update:
Download half-1.11.0.zip
Browse All Files


This is a C++ header-only library to provide an IEEE-754 conformant half-precision floating point type along with corresponding arithmetic operators, type conversions and common mathematical functions. It aims for both efficiency and ease of use, trying to accurately mimic the behaviour of the builtin floating point types at the best performance possible. It automatically uses and provides C++11 features when possible, but stays completely C++98-compatible when neccessary.

half Web Site


Graphics, Libraries, Mathematics


MIT License


  • Easy to use half-precision floating point type
  • IEEE 754 conformant data representation
  • All arithmetic operators and mathematical functions
  • Integrating well with existing floating point types
  • Fully C++98-compatible, while supporting C++11 features
  • Single header file simple to include, no building required

Update Notifications

Write a Review

User Reviews

Be the first to post a review of half!

Additional Project Details

Intended Audience


Programming Language



Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.