From 2fef5ccd991e6e0e2032ba064ffd66cff50a2ec1 Mon Sep 17 00:00:00 2001 From: clach04 Date: Thu, 27 Oct 2016 12:09:30 +0100 Subject: [PATCH] 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a28bb8..4dc74c9 100755 --- a/README.md +++ b/README.md @@ -538,7 +538,7 @@ In the above example, Sushi and Burgers will be selected by default. The range slider is used to allow users to select numbers between two values. -**NOTE** If you set the `step` property to anything less than `1`, +**NOTE** If you set the `step` property to a fractional value, 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`. Eg: If you set the `step` to `0.25` and the slider has value of `34.5`, the watch will receive `3450`. The reason why this is necessary, is because you can not send floats to the watch via `Pebble.sendAppMessage()`.