| | |
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 22 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 * ansi api array arrays asterisks binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createcopyoffile createprocess() database dynamic execv fflush fgets file floatingpointvalidation fork forloop frequency function getlogicaldrivestrin givemetehcodez grade graphics gtkwinlinux histogram homework i/o inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping loopinsideloop. lowest matrix microsoft mysql oddnumber open opendocumentformat openwebfoundation pdf pointer posix power program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing scanf scheduling segmentationfault send sequential shape single socket socketprogramming stack standard strchr string suggestions test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






