Skip to content

Commit 2fef5cc

Browse files
authored
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 fa3406a commit 2fef5cc

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
@@ -538,7 +538,7 @@ In the above example, Sushi and Burgers will be selected by default.
538538

539539
The range slider is used to allow users to select numbers between two values.
540540

541-
**NOTE** If you set the `step` property to anything less than `1`,
541+
**NOTE** If you set the `step` property to a fractional value,
542542
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`.
543543
Eg: If you set the `step` to `0.25` and the slider has value of `34.5`, the watch will receive `3450`.
544544
The reason why this is necessary, is because you can not send floats to the watch via `Pebble.sendAppMessage()`.

0 commit comments

Comments
 (0)