SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just
private double translateSlider(int sliderval) { if(sliderval > 4 || sliderval < 0) return 1.0d; return (1.0d - ((double)sliderval/10.0d)); }
Or similar?