I'm not sure what you mean. Can you show me a video of this happening? This won't cull digits by design. If you want it to it's not hard to make that happen.balala wrote: ↑November 14th, 2019, 9:15 pm Don't worry, it happens to all of us sometimes to miss such details.
Well, unfortunately there still is a problem: if the number generated by the Rand function of the [RandomNumber] measure is so large that the number returned by the measure has more digits than MinValue, the result is wrong again. Check it increasing the HighBound value of the
[RandomNumber] measure.
Unfortunately the code should handle such cases as well.
It is currently September 28th, 2024, 7:22 pm
Number measure extension "0"
-
- Posts: 134
- Joined: June 30th, 2014, 8:44 am
Re: Number measure extension "0"
-
- Rainmeter Sage
- Posts: 16600
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Number measure extension "0"
There is no need for a video. Just replace the HighBound option of the [MeasureRand] measure with: HighBound=21474836454343.
-
- Posts: 134
- Joined: June 30th, 2014, 8:44 am
Re: Number measure extension "0"
This isn't a bug with the regex, it's just that the calc can't handle numbers that large. You can see that the RandomNumber measure isn't showing a large number.
The HighBound I used there was the largest number the random function can use. If you add even 1 it breaks the calc measure, but the regex still works just fine. You can test this by replacing Random/1000 with the same number and it will work fine.
-
- Rainmeter Sage
- Posts: 16600
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Number measure extension "0"
Yes, right. Now I see. The largest value of HighBound is 2,147,483,647, according to this: https://docs.rainmeter.net/manual/measures/calc/#HighBound
Sorry...