realmin

realmin(T)

The smallest in absolute value non-subnormal value representable by the given floating-point DataType T.

Examples

In the Julia programming language, the function realmin(T) returns the smallest non-subnormal value representable by the given floating-point data type T. Here are some examples of its usage:

julia> realmin(Float64)
2.2250738585072014e-308

This example returns the smallest positive non-subnormal value representable by the Float64 data type.

julia> realmin(Float32)
1.1754944f-38

This example returns the smallest positive non-subnormal value representable by the Float32 data type.

julia> realmin(Float16)
6.104e-5

This example returns the smallest positive non-subnormal value representable by the Float16 data type.

Common mistake example:

julia> realmin(Int64)
ERROR: MethodError: no method matching realmin(::Type{Int64})

In this example, the realmin function is called with an unsupported data type (Int64). The realmin function is specifically designed for floating-point data types, so it cannot be used with integer types. Make sure to use realmin with appropriate floating-point data types.

Please note that the values returned by realmin may depend on the specific Julia version and the underlying hardware architecture.

See Also

abs2, beta, binomial, ceil, cell, cross, ctranspose, ctranspose!, cummin, cumprod, cumprod!, cumsum, cumsum!, cumsum_kbn, div, divrem, eigfact, eigfact!, eigmin, eps, erf, erfc, erfcinv, erfcx, erfi, erfinv, exp, exp10, exp2, expm1, exponent, factor, factorial, factorize, floor, gcd, invmod, log, log10, log1p, log2, logspace, max, min, mod, mod1, modf, next, nextpow, nextprod, num, primes, primesmask, prod, realmin, sqrt, sum!, sumabs, sumabs!, sumabs2, sumabs2!,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: