F# library for operations related to radix conversion. Compatible with Fable.
$ dotnet add package Fermata.RadixConversionF# library for operations related to radix conversion. Compatible with Fable.
Version 2.0.0
For more information, see the signature file (.fsi).
.NET CLI,
dotnet add package Fermata.RadixConversion --Version 2.0.0
F# Intaractive,
#r "nuget: Fermata.RadixConversion, 2.0.0"
For more information, please see Fermata on NuGet Gallery.
Dec, Bin and Hex discriminated unions are now inplemented as single case discriminated unions, while they used to be multi case DU, holding two cases Valid and Invalid.dec, bin and hex are added. These functions takes a value (able to convert to int) and convert it to Dec, Bin and Hex. A conversion Dec.Valid 42 |> Dec.toBin now can be written Dec 42 |> bin (the older functions are still left). This change doesn't replace anything, nothing is abolished. But in some cases, this change might cause some trouble if your code includes values named "dec", "bin" and "hex" because those values will overwrite the newly added functions.Hex.validate returns the input hexadecimal representation in lower case, while it used to return the input value in upper case or in lower case according to the input.Bin.validate and Hex.validate return the input binary number representation or hexadecimal representation without leading zeros, while they used to return the input value with leading zeros.Fermata.Exceptions.This product is licensed under the MIT license.