Isobit 1.0.1

dotnet add package Isobit --version 1.0.1
                    
NuGet\Install-Package Isobit -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Isobit" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Isobit" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Isobit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Isobit --version 1.0.1
                    
#r "nuget: Isobit, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Isobit@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Isobit&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Isobit&version=1.0.1
                    
Install as a Cake Tool

Isobit

Cross-platform bit-exact math library. Same input, same bits, every platform.

glibc, macOS's libm, MSVC's CRT and ARM's libm each implement sin/cos/exp/log/pow slightly differently — usually within 1 ULP of the correctly-rounded result, but not the same 1 ULP, and not on the same inputs. Isobit replaces the platform-dependent subset of libm with a fixed, correctly-rounded implementation (vendored from CORE-MATH, MIT license) that produces identical output bits across x86-64/ARM64, on every OS, at every optimization level.

This package ships native binaries (win-x64, linux-x64, linux-arm64, osx-arm64) for the plain C ABI — call it via DllImport:

using System.Runtime.InteropServices;

internal static class Isobit
{
    [DllImport("isobit")] public static extern double isobit_sin(double x);
    [DllImport("isobit")] public static extern double isobit_pow(double base_, double exponent);
    [DllImport("isobit")] public static extern ulong isobit_hash_bits(double[] values, nuint n);
}

.NET resolves the correct native binary for the current runtime automatically from the package's runtimes/<rid>/native/ folders — no extra configuration needed as long as the consuming project has a RuntimeIdentifier set (or is publishing self-contained).

78 functions total (36 binary64 + 42 binary32), every one correctly-rounded and CI-verified bit-identical across the full build matrix. Full function list, C ABI reference, and source: github.com/FelixMiddelhoff/isobit.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 101 9/18/2026
1.0.0 83 9/18/2026