F:=(50 div 3)
-
hello i'am new in write programs in delphi. my problem is how can i get 16,66 in a variable? variable F:=(50 div 3) result must be 16,66 but integer is 16 sorry my english is not so good. thank you
-
thank you but i forgot to write, the result must be in a label als Caption and this is a string. I get the error string and double not compatible. when i use integer then wiht the InToStr i get the Caption 16 and not 16,66 if you now how i hafe to do pleas thank you
-
thank you but i forgot to write, the result must be in a label als Caption and this is a string. I get the error string and double not compatible. when i use integer then wiht the InToStr i get the Caption 16 and not 16,66 if you now how i hafe to do pleas thank you
-
hello i'am new in write programs in delphi. my problem is how can i get 16,66 in a variable? variable F:=(50 div 3) result must be 16,66 but integer is 16 sorry my english is not so good. thank you
The operators div and mod are complimentary. Use div when you want the integer part of the division to be returned, and mod to get the remainder: 10 div 3 = 3 10 mod 3 = 1
Will Rogers never met me.