• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Doubt in Modulus Operator in C

 
Ranch Hand
Posts: 207
3
Oracle MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers, I want to ask about this Simple Calculator program which is in C language



Can anyone please tell that why I am getting the error at the case of Modulus operator ?

Thanks in Advance
 
Saloon Keeper
Posts: 12481
269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get an exception that you don't know how to deal with, always copy it so people know what's going wrong.

Anyway, it's likely that the modulus operator isn't defined for floating point operands.
 
O Shea
Ranch Hand
Posts: 207
3
Oracle MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:When you get an exception that you don't know how to deal with, always copy it so people know what's going wrong.



Definitely, i will take care about it, next time.

Stephan van Hulst wrote:
it's likely that the modulus operator isn't defined for floating point operands.



Ok, thank you very much.
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic