funkheld Posted July 30, 2015 Share Posted July 30, 2015 hello. math-error: Operator is not applicable. why? thanks var wert : word; begin wert := 1234 / 47; repeat until keypressed; end. Quote Link to comment Share on other sites More sharing options...
tebe Posted July 30, 2015 Share Posted July 30, 2015 use DIV for INTEGER TYPE (BYTE, WORD, CARDINAL) '/' is for REAL TYPE Quote Link to comment Share on other sites More sharing options...
funkheld Posted July 30, 2015 Author Share Posted July 30, 2015 hello, thanks. and " * " is for real and mul for byte,word,cardinal ? greeting Quote Link to comment Share on other sites More sharing options...
tebe Posted July 30, 2015 Share Posted July 30, 2015 no, "*" for ALL DIV, MOD for INTEGER, "/" for REAL http://wiki.freepascal.org/Div http://wiki.freepascal.org/Mod http://www.tutorialspoint.com/pascal/pascal_operators.htm Quote Link to comment Share on other sites More sharing options...
funkheld Posted July 30, 2015 Author Share Posted July 30, 2015 hello thanks. greeting Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.