ios - Difference between two identical NSTimeInterval is different than zero -


edit:

this not strictly floating point question nstimeinterval derived double. added floating point tags related.

problem:

when computing difference between 2 identical nstimeinterval value different zero (-0.0000013etc..).

question:

why that? understanding double values behaviour should consistent (if float type different).

swift code:

let timedifference : nstimeinterval = timevalue.timeintervalsince1970 - timestarted!.timeintervalsince1970 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -