ScratchData LogoScratchData
Back to grandpasp's profile

Slider Precision

GRgrandpasp•Created August 9, 2024
Slider Precision
9
10
146 views
View on Scratch

Instructions

When I discovered that a variable slider can only be configured to display either a precision of zero or two decimal places, I decided to create a block to over-ride the slider configured settings. Settings > 0 set the number of decimal points. Settings < 0 round the number to a power of ten.

Description

Limitation: Setting > 2 may display as configured, but a slider cannot select with precision < .01 The on-stage sliders are all configured to two decimal places. I have hard-coded the precision of the first 7 variables. The last one is configurable on-the-fly. This is a small portion of code from a larger project I'm developing on my alt account.

Project Details

Project ID1054016293
CreatedAugust 9, 2024
Last ModifiedSeptember 17, 2024
SharedAugust 9, 2024
Visibilityvisible
CommentsAllowed