Lili on Nostr: nprofile1q…qrcc0 Sweetie, what is this? function isAlmostInteger(num: number): ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqdhnn6acp8d933rcmkrw8vceqfhyfr26jw4a9katmwqhqelwkc50swqrcc0 (nprofile…rcc0) Sweetie, what is this?
function isAlmostInteger(num: number): boolean {
return Math.abs(num - Math.round(num)) < Number.EPSILON;
}
Couldn’t you just do first.x + (2 * distance.x // 3)? :P
On the other hand, you were faster than me today, well done
function isAlmostInteger(num: number): boolean {
return Math.abs(num - Math.round(num)) < Number.EPSILON;
}
Couldn’t you just do first.x + (2 * distance.x // 3)? :P
On the other hand, you were faster than me today, well done
