ulp property
double
ulp
Returns the url (unit in the last place) of this value, that is the positive spacing between two consecutive floating-point numbers.
Implementation
double get ulp {
if (this < 0.0) return (-this).ulp;
if (!isFinite) return this;
if (this == double.maxFinite) return this - nextDown;
return nextUp - this;
}