Calculated Field Gone Crazy

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Miguel_(Guest)
Posts: 7
Joined: Tue Oct 10, 2017 12:44 pm

Calculated Field Gone Crazy

Post by Miguel_(Guest) » Thu Mar 17, 2005 4:19 pm

Can someone see if they can reproduce this calculation error. I want to make sure it^s not just me.____CJAN=19386__PJAN=171__TJAN=(CJAN+PJAN) =19557____INCDEC=160000____TPJAN=TJAN/INCDEC =.1222__ __QJAN=INCDEC3*TPJAN =19552 <----when i run this i get 19557____If I make a another calculated field like this TEST=160000*.1222 it returns 19952. I am doing something wrong? I hope so.____Someone please tell me I^m not crazy. It^s been a long day!____Thanks,__Miguel

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Calculated Field Gone Crazy

Post by kfleming » Thu Mar 17, 2005 9:40 pm

You need to add the round() function to your expression.__Try:__TJAN=ROUND(CJAN+PJAN),0)__TPJAN=ROUND(TJAN/INCDEC),4)____Kathleen__R&R Support

Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Calculated Field Gone Crazy

Post by Alan_Klein » Mon Mar 21, 2005 9:35 am

I think Kathleen inadvertently added an extra parenthesis in one line above. It should read: TPJAN=ROUND(TJAN/INCDEC,4)

Alan_Klein
Posts: 68
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Calculated Field Gone Crazy

Post by Alan_Klein » Mon Mar 21, 2005 9:36 am

Also in the line above, which should read: TJAN=ROUND(CJAN+PJAN,0)__

Post Reply