It is currently March 29th, 2024, 2:14 am

[Feature] SubstituteNumber="":""

Report bugs with the Rainmeter application and suggest features.
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

[Feature] SubstituteNumber="":""

Post by Jax »

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
User avatar
Yincognito
Rainmeter Sage
Posts: 7029
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Feature] SubstituteNumber="":""

Post by Yincognito »

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.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

Re: [Feature] SubstituteNumber="":""

Post by Jax »

True, maybe I'll have to re-consider the importance of this option :uhuh: