great, worked like a charm
On Oct 7, 5:44 pm, David Rutten <[EMAIL PROTECTED]> wrote: > Danny, > > rounding to the next highest integer is usually accomplished by first > adding 0.5, then rounding to the nearest integer. > But, you could also use a Ceiling function: > > 1) add a slider to your canvas, make it go from 0.0 to 10.0 > 2) add a new number parameter (Params.Primitive panel), feed the > slider into the parameter. > 3) open the parameter menu and go into the Expression sub-menu, then > open the Expression Editor. > 4) in the textfield type: Ceiling(num) > 5) now, the parameter will contain the nearest biggest integer. > > If you want to use other functions, click on the "display function > list" button in the Expression editor. We also have Round() and > Floor(), Int(), Fix() and CInt(), these are all rounding functions. > > -- > David Rutten > Robert McNeel & Associates > > On Oct 7, 11:35 pm, Danny Dong <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > im starting to create a staircase..... > > > anyways, this is how I am starting... > > > I got the floor to floor height from subtracting (Z2-Z1) of two points > > on a line....... > > Then I divided that by 7" (my desired riser height) > > The I get some number XXX.XXXXX > > How to I round the number to the next highest Integer? > > > thanks- Hide quoted text - > > - Show quoted text -
