Lee Mac 发表于 2022-7-6 15:17:49

(/ 5 12) = 0

Ok, this is going to be a quick fix no doubt - but I can't see why its happening.
 
I type (/ 5 12) into the command prompt and receive a return of 0.
 
I would think there is a variable rounding my answer - but I have no clue what it is...
 
Any help is appreciated.

CAB 发表于 2022-7-6 15:46:22

Because you are using integers and not reals.
Here is a hint:
(/ 5 12.)

Lee Mac 发表于 2022-7-6 15:54:41

HAHAHA, Schoo-boy error
 
Cheers CAB.

flowerrobot 发表于 2022-7-6 16:05:34

i think all but cab make them

Lee Mac 发表于 2022-7-6 16:30:11

True - him and ASMI maybe
页: [1]
查看完整版本: (/ 5 12) = 0