Welcome, Guest

Summary Round Up resoult
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Summary Round Up resoult

Summary Round Up resoult 2 years, 6 months ago #7729

Hello,

I would like round up resoul that I recive in Summarize option.

Where can i find commands that i can use to write a formula in summary option? Is any particular programing language used in BF?

Many Thanks
Piotr
  • bobskun
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0

Re:Summary Round Up resoult 2 years, 6 months ago #7730

hi,

if you need normal rounding you can use javascript and Math.round:

value = Math.round( bfField("f1") + bfField("f2")  );


if you need it for currency related calculations I suggest using toFixed

var fixMe = Number( bfField("f1") + bfField("f2") );
value = fixMe.toFixed(2);


Also see:
www.pageresource.com/jscript/j_a_03.htm
  • TheMuffinMan

Re:Summary Round Up resoult 2 years, 6 months ago #7731

Thank you
  • bobskun
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.36 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany