I have a program in C++ which uses the definition of smallest finite double double FPMIN = std::numeric_limits<double>::min() / EPS;
From reference: std::numeric_limits<T>::min - cppreference.com
I’m trying to translate this program in Julia. However, Julia doesnt return a finite value when I run:
> typemin(Float64)/eps()
-Inf
Any suggestions on how I can get the smallest finite float or a good approximation to circumvent this problem?
Yes floatmin(), solves my problem!
Nextfloat(0.0) gives a very small number and seems to work, but for this particular code where I take 1/FPMIN later it returns Inf not being applicable.