I am getting warning message on the following expression.
(400*ev.PageBounds.Width)/2400
Warning message is Output precision is reduced to the precision of the operands.
Why? Can I just ignore it?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use operands of wider precision:
or cast them:
etc. Note that it is the
400what dictates the type of the result, you may skip casting the2400Edit: no, in general you should not ignore it. The message warns you that dividing BLAH by 2400 may result in fractions that would be truncated. Ie. 3500 / 2400 = 1. It would be done in such way, when all of your operands are integral, for example:
while