> ..for example 2/16 or 8/16,
> you display it as a fraction with the smallest denominator, that is
> 1/4 or 1/2 respectively.

math fail :(

On Jan 18, 2:58 am, visose <[email protected]> wrote:
> Maybe you find this 
> useful:http://grasshopper3d.googlegroups.com/web/16fractions.ghx
>
> I'm not sure if i understood correctly so maybe this has nothing to do
> with what you are really looking for. What i figure is that the ring
> sizes increase by 1/16, but when you have for example 2/16 or 8/16,
> you display it as a fraction with the smallest denominator, that is
> 1/4 or 1/2 respectively.
> This definition contains an integer slider where each number
> represents 1/16. This number of 1/16ths are then converted into the
> appropriate format using a text tag on the rhino viewport. It will
> display some text like "sz 2 and 1/4th" or "sz 4 and 7/16th". The idea
> is not to look at the actual number that the slider is displaying, but
> rather at the numbers displayed in the viewport.
>
> I did it using standard components but if you do a search in google
> you can find vb.net functions that convert decimals to fractions.
>
> On Jan 17, 11:31 pm, CAD-NY <[email protected]> wrote:
>
> > On Jan 17, 4:49 pm, David Rutten <[email protected]> wrote:
>
> > > Hi CAD,
>
> > > when you open the Expression editor of a slider (through the slider
> > > context menu), it should tell you all the variables that are
> > > available.
> > > In the case of sliders, the variable that's available is the slider
> > > name.
>
> > >http://groups.google.com/group/grasshopper3d/web/SliderExpression.jpg
>
> > I didn't realized that (thank you, more learning)
> > In my case (ring sizes for jewelry) the sizes are broken down in 1/2,
> > 1/4, 1/8 or 1/16th.
> > We use Sliders to compound  the right finger Size. Es: (sz 6 and 7/8)
> > or (sz 6 and 1/16th) etc.
> > All of these obviously are in millimeters but the slider should be
> > able to change the numeric disply from 1 to 4, or 1 to 8, or 1 to 16.
> > Another Slider, based on the finger size,should change the Min, Max
> > and Numeric input for Height of the ring (based on the Finger Size) so
> > that the end-user needs not to think.
> > Is this possible?
>
>

Reply via email to