I'm having an issue with a simple multiplication result in SAS. The excerpt for the code is below. The calculation where I'm having a problem is NEWPREMX. In this particular example, NEWPREMB = 540 and KEYFACT2 = .62500. When I multiply that on a calculator on in Excel, I get 337.50000. SAS is returning 337.499. The problem with this is that I need to round that result to the nearest whole number and that produces 2 different results (338 for 337.5 and 337 for 337.499). The output from this is shown below the formulas. Anyone ever run into this? NEWPREMD = ROUND(NEWPREMB * KEYFACT2); NEWPREMX = NEWPREMB * KEYFACT2; KEYFACT2 NEWPREMA NEWPREMB NEWPREMD NEWPREMX 0.62500 540 540 337 337.499
... View more