It is currently October 13th, 2024, 2:09 am
[Feature] SubstituteNumber="":""
-
- Posts: 104
- Joined: June 7th, 2021, 11:46 am
[Feature] SubstituteNumber="":""
This option applied to a measure would substitute the number value instead of the string value. This option should also be affected by RegexpSubstitute=1
-
- Rainmeter Sage
- Posts: 8442
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: [Feature] SubstituteNumber="":""
I'm not sure if performing string operations on a number would make sense, but manipulating the result value in another String or Calc measure to achieve what you want is really easy. Of course, it's not so convenient when you have to do it for a lot of original measures, but it can be done nevertheless. I use this approach in some of my skins to round, truncate, scale the original number by an arbitrary divisor and even append the K, M, G, T, P, E, Z, Y magnitude suffixes to it afterwards, but of course the approach would depend on how you'd want that number to be transformed.
-
- Posts: 104
- Joined: June 7th, 2021, 11:46 am
Re: [Feature] SubstituteNumber="":""
True, maybe I'll have to re-consider the importance of this option