snap

Snaps value to step, if T is not float, then explicit casts are used and it may cause data loss

  1. T snap(T p_val, T p_step)
  2. T snap(T p_val, T p_step)
    T
    snap
    (
    T
    )
    if (
    !isFloatingPoint!T
    )

Meta