# How do I:Simple mathematical issue

Get help using Construct 2

### » Sat Oct 15, 2016 5:17 am

Hi
I have this operation with this result

3.8 - 3.2 = 5.9999999999999996

But I do think the result is 0.6
Is it possible ?
B
11
S
3
Posts: 47
Reputation: 850

### » Sat Oct 15, 2016 7:03 am

B
28
S
17
G
159
Posts: 894
Reputation: 82,761

### » Sat Oct 15, 2016 7:18 am

@madspy the error is quite off (as the result is not 6 but 0.6) so I do not think this is the only issue here.
@Angiel I couldn't reproduce the issue on my side, it gives me 0.5999999.. which is close to 0.6 and is to be expected (0.6 is not a finite number in binary) as madspy pointed out (I suggest you round the result to something like the 6th decimal to have the correct result if you happen to have innexactitudes like this)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
23
G
18
Posts: 2,123
Reputation: 17,200

### » Sat Oct 15, 2016 6:00 pm

Hi
Thanks for the replies.