Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Rounding up a value for a question using multiple numerical input

  • midnightking
  • midnightking's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #223609 by midnightking
Is there a way to round up a value in such a way that if the decimals are equal or greater to 0.5  the value is converted to the next natural number and, if the decimals are below 0.5, the value is converted to the previous natural number?

For instance, 1.66 would become 2 and  3.33 would become 3.

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #223616 by Joffm
Hi,
what about the implemented function "round()"?
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose