# Results of "a-b -c" and "a-b-c" different

**URL:** <https://forum.crystal-lang.org/t/results-of-a-b-c-and-a-b-c-different/2402>\
**Category:** Help & Support\
**Created:** [August 1, 2020, 6:12am UTC](https://forum.crystal-lang.org/t/results-of-a-b-c-and-a-b-c-different/2402 "2020-08-01T06:12:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![makino](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/makino/32/1019_2.png) [@makino](https://forum.crystal-lang.org/u/makino)\
**Post date:** [August 1, 2020, 6:12am UTC](https://forum.crystal-lang.org/t/results-of-a-b-c-and-a-b-c-different/2402/1 "2020-08-01T06:12:53Z")

</div>

Hello!

I found a-b-c and a-b -c give different result. Anyone knows if this  
is following the language specification or not?

a = 20  
b = 19  
c=3  
pp! a-b -c  
pp! a-b-c

gives

a - (b - c) # =\> 4  
(a - b) - c # =\> -2

---

_[View the full topic](https://forum.crystal-lang.org/t/results-of-a-b-c-and-a-b-c-different/2402)._
