         textbox.value = Math.round(10**slider.value * 10**digits)/10**digits
     else
         textbox.value = slider.value
+
+getSliderValue = (sliderID) ->
+    textboxID = "#{sliderID}value"
+
+    textbox = document.getElementById(textboxID)
+    slider = document.getElementById(sliderID)
+
+    if sliderID=="alpha"
+        digits=Math.floor(-slider.value)+2
+        return(Math.round(10**slider.value * 10**digits)/10**digits)
+    else
+        return(slider.value)
 
 # stuff for form
 param =

d3.select("form#sliders")
  .on("change", () ->
                   for par in ["n", "alpha", "delta", "sigma"]
                       printSliderValue(par))

# population distributions
# sampling distributions

# code to create interactive graph demonstrating power in a two-sample t-test

# function that prints slider value next to slider
printSliderValue = (sliderID) ->
