Skip to content
Novus Examples
csv815 B

IEEE-754 float32 Boundary Values — Bit-Level CSV (.csv)

The float32 boundary values split into sign, 8-bit exponent and 23-bit mantissa alongside their decimal forms. Use it to check a single-precision encoder field by field rather than guessing which end of the number went wrong.

Preview — first 14 linescsv
case,float32_repr,float32_bits_hex,sign,exponent_raw,mantissa_hex,classification
positive zero,0.0,0x00000000,0,0,0x000000,positive zero
negative zero,-0.0,0x80000000,1,0,0x000000,negative zero
smallest subnormal,1.401298464324817e-45,0x00000001,0,0,0x000001,normal
smallest normal,1.1754943508222875e-38,0x00800000,0,1,0x000000,normal
machine epsilon,1.1920928955078125e-07,0x34000000,0,104,0x000000,normal
one plus epsilon,1.0000001192092896,0x3f800001,0,127,0x000001,normal
one,1.0,0x3f800000,0,127,0x000000,normal
largest finite,3.4028234663852886e+38,0x7f7fffff,0,254,0x7fffff,normal
positive infinity,inf,0x7f800000,0,255,0x000000,infinity
quiet NaN,nan,0x7fc00000,0,255,0x400000,NaN
two to the 24,16777216.0,0x4b800000,0,151,0x000000,normal
two to the 24 plus one,16777216.0,0x4b800000,0,151,0x000000,normal

Specifications

Rows
12
Columns
7
Exponent Bits
8
Mantissa Bits
23
Decodes To
the paired float32 .npy array

Testing contract

Reference control
Scenario
Rebuild each float32 from its sign, exponent_raw and mantissa_hex columns and compare against float32_bits_hex.
Expected result
Every reconstruction matches, subnormals show exponent_raw 0 with a non-zero mantissa, and the two 2^24 cases differ in the CSV while collapsing to one value in float32.

What is a .csv file?

CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.

How to use this file

Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.

How to use this file for testing

“IEEE-754 float32 Boundary Values — Bit-Level CSV (.csv)” is a deterministic Novus Examples fixture for Scientific data, Editor testing, Conversion testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS) — for testing reference managers, molecule viewers, and scientific-data loaders.

Documented properties for this file: 12 rows · 7 columns. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Scientific fixtures are small, valid, and fully synthetic — no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.

Code examples

import pandas as pd

df = pd.read_csv("ieee754-float32-boundaries.csv")
print(df.head())
print(df.dtypes)

Generated by generation/scientific.py. Free for any use, no attribution required — license.