Opened 14 years ago

Closed 7 years ago

# slider: should round the valuenow to 2 decimal places before setting

Reported by: Owned by: Becky Gibson bill high 1.11 Accessibility 1.1.1

### Description

When the window-eyes screen reader speaks the slider value it speaks the entire value provided - we should probably round this to two decimal places. JAWS already rounds the value to a whole number.

I'm not sure what affect rounding the value could have on its meaning? Perhaps the rounding should only occur if a min has been set to 0 and a max to 100?

### comment:1 Changed 14 years ago by Becky Gibson

Milestone: tbd → 1.3

### comment:2 Changed 14 years ago by Douglas Hays

I'm assuming this is talking about rounding the valuenow value parameter to dijit.setWaiState. I think rounding to N fractional decimal digits would be OK and not require a new parameter if you could come up with a good formula - though a parameter would clearly be easier to implement.
I'd think for 0 to 100, that 2 digits would be OK, so 0.01 and 99.99
For 0 to 10000, maybe 0 fractional digits are needed.
For 0 to 1, I think you'd need 0.0001 and 0.9999 Similarly for 99 to 100, would you need 99.0001 and 99.9999?

### comment:3 Changed 13 years ago by Becky Gibson

Milestone: 1.3 → 1.4

### comment:4 Changed 13 years ago by bill

Hmm, this seems like what the discreteValues parameter is already for, assuming that the math works out? For example for a slider from 0 to 100, if discreteValues==10 then valuenow is 10,20,30,40, etc.

Admittedly if the slider goes from 0 to 1 w/discreteValues=3 then you will get 0.33333333333 as a value.

BTW what you are talking about is called "rounding to 2 significant dijits", see http://en.wikipedia.org/wiki/Significant_figures

### comment:5 Changed 13 years ago by Becky Gibson

Milestone: 1.4 → future

### comment:6 Changed 11 years ago by Chris Mitchell

Owner: changed from Becky Gibson to Douglas Hays

reassign due to inactive committer. please triage accordingly.

### comment:7 Changed 8 years ago by Douglas Hays

Owner: Douglas Hays deleted new → assigned

### comment:8 Changed 8 years ago by Douglas Hays

Status: assigned → open

### comment:9 Changed 7 years ago by bill

Milestone: future → 1.11 set to bill open → assigned

### comment:10 Changed 7 years ago by Bill Keese <[email protected]…>

Resolution: → fixed assigned → closed
Error: Processor CommitTicketReference failed
`Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? `
Note: See TracTickets for help on using tickets.