User Tools

Site Tools


crpl:docs:approximately

<- CRPL reference <- Math Commands

approximately

<-val1 <-val2 approximately ->bool

Description

Takes two floats and returns True if they equal, regardless of floating point jitter. http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Approximately.html

Examples

# example borrowed from 4RPL reference
if (approximately(1.000001 1))
    trace("1.000001 is approximately equal to 1")
endif 
crpl/docs/approximately.txt · Last modified: 2022/07/05 14:19 by Karsten75