Function scalarApproxUlp

Determines if two floating point scalars are maxUlps close to each other.

bool scalarApproxUlp(T) (
  in T a,
  in T b,
  in ulong maxUlps = 4
)
if (isFloatingPoint!T);