Version: 2017.1
public static float SnapValue (float val, float snap);

반환

float The rounded value, if snap is positive, and val otherwise.

설명

Rounds the value val to the closest multiple of snap (snap can only be positive).