Quick, stupid question about the round() function.
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
-
- Kobold
- Posts: 18
- Joined: Thu Dec 17, 2009 9:04 pm
Quick, stupid question about the round() function.
Yeah, this is really stupid, but is it possible to make it round down, instead of up? I tried rounddown(), which didn't do anything, round down() which caused an infinite error loop, and roundd() which didn't do anything either <_<. I'm sure it's something simple I'm missing.
Re: Quick, stupid question about the round() function.
DCI/RPGA# 7208328396 Skype ID mfrizzell77
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Re: Quick, stupid question about the round() function.
Do you want to round to the nearest integer, or a decimal place?
see Wiki: floor(), and Wiki: ceiling() for other rounding functions.
see Wiki: floor(), and Wiki: ceiling() for other rounding functions.
"The trouble with communicating is believing you have achieved it"
[ d20 StatBlock Importer ] [ Batch Edit Macros ] [ Canned Speech UI ] [ Lib: Math ]
[ d20 StatBlock Importer ] [ Batch Edit Macros ] [ Canned Speech UI ] [ Lib: Math ]
-
- Kobold
- Posts: 18
- Joined: Thu Dec 17, 2009 9:04 pm
Re: Quick, stupid question about the round() function.
Ah, the floor function. That works perfectly, thank you!