Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 13 years ago

sagefan gravatar image

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible that the number printed right to the slider has only one decimal place?

click to hide/show revision 2
No.2 Revision

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible to adjust this, such that the number printed right to the slider has only one decimal place?

click to hide/show revision 3
No.3 Revision

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible to adjust this, such that the number printed to the right to of the slider has only one decimal place?