Skip to content

Commit 904d6bc

Browse files
clach04hellcp
authored andcommitted
Update readme to clarify slider fractional values
Previous text implied negative values not allowed (they are allowed) and it wasn't clear that fractional numbers were the topic until the example.
1 parent 94f4770 commit 904d6bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ In the above example, Sushi and Burgers will be selected by default.
516516

517517
The range slider is used to allow users to select numbers between two values.
518518

519-
**NOTE** If you set the `step` property to anything less than `1`,
519+
**NOTE** If you set the `step` property to a fractional value,
520520
it will multiply the final value sent to the watch by 10 to the power of the number of decimal places in the value of `step`.
521521
Eg: If you set the `step` to `0.25` and the slider has value of `34.5`, the watch will receive `3450`.
522522
The reason why this is necessary, is because you can not send floats to the watch via `Pebble.sendAppMessage()`.

0 commit comments

Comments
 (0)