| | |
C Modulus
![]() |
•
•
Join Date: Nov 2009
Posts: 18
Reputation:
Solved Threads: 1
C Syntax (Toggle Plain Text)
float decimal = 2.345324 float dec_points = decimal%1;
hey guys,
I have a small but trivial problem... i have been trying to do the above but i keep getting a error...
"error C2296: '%' : illegal, left operand has type 'float'"
Anyone got a clue?
Thanks guys!
1
#3 23 Days Ago
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- Where does Modulus fit in with PEMDAS? (C++)
- Using Modulus (Java)
- queue and modulus question (C)
- modulus operator % (C)
- hellp with modulus (C++)
- Need help with the program i have written i am unable to correct the problems. please (C++)
Other Threads in the C Forum
- Previous Thread: c language programe HELP ME PLEASE
- Next Thread: How to do "narrow the range" in a guessing game?
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft motherboard mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






