I have a following code:
Manipulate[
Column@{
InputField[Dynamic[coefA], Number, ImageSize-> 130]
(*InputField[Dynamic[SetPrecision[coefA,3]], Number, ImageSize->130]*),
Slider[Dynamic[coefA], {-10., 10., .01}, ImageSize -> 130]
},
{{coefA, 0}, ControlType -> None},
AppearanceElements -> None]
I want both Slider and InputField to be able to modify coefA variable, however I would like to have a special formatting inside InputField - to 2 decimal points (like: 1.2358->1.24). The commented line works... for the Slider. It can modify variable and it is printed correctly, but I loose ability to modify it via InputField because:
"Tag SetPrecision in SetPrecision[-1.74,3] is Protected."
Any ideas how it can be done?
Dynamic[SetPrecision[coefA, 3], (coefA = #) &]– Kuba Dec 18 '15 at 12:22NumbertypeInputField. – Kuba Dec 18 '15 at 12:26