NumberUnions.jl

Author JeffreySarnoff
Popularity
0 Stars
Updated Last
6 Years Ago
Started In
April 2017

NumberUnions.jl

Copyright © 2016-2018 by Jeffrey Sarnoff. This software is released under The MIT License.



Type Unions

Local Unions

Union Types gathered
SysInt, SysUInt, SysFloat {Int128 .. Int8}, {UInt128 .. UInt8}, ..
MachInt, MachUInt, MachFloat {Int64, Int32}, .., {Float64, Float32}
IntFloat64, IntFloat32, IntFloat16 {Int64, Float64}, {Int32, Float32}, ..
Integer128, Integer64, Integer32, Integer8 .., {Int64, UInt64}, {Int32, UInt32}, ..

Imported Unions

Base.IEEEFloat (Union{Float64, Float32, Float16}) is reexported as IEEEFloat

Type Functions

Type from sizeof(type)

  • bytes2Int, bytes2UInt, bytes2Float
using NumberTypeUnions

bytes2Int( sizeof(Int16) )
Int16

bytes2Float( sizeof(Float32) )
Float32