Yet another way, based on a logarithm method by Smurfier back in the day (too lazy to search for its forum link at this hour):Scale (any) and Decimals (up to 3, since the 4th and 5th are used to store the unit as a decimal before conversion to k, M, G and so on) are variables just in case some "parameters" are desired, otherwise they can be hardcoded in the formula. This might work for negative values too, though not 100% sure, as I just copy pasted it from my skins.
Code:
[Variables]Scale=1024Decimals=2[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1---Measures---[Value]Measure=CalcFormula=2025[ValueAutoScaled]Measure=CalcFormula=Sgn(Value=0?1:Value)*(Round(Abs(Value)/#Scale#**Trunc(Log(Abs(Value)<1?1:Abs(Value))/Log(#Scale#)),#Decimals#)+(Trunc(Log(Abs(Value)<1?1:Abs(Value))/Log(#Scale#))+1)*(10**(-#Decimals#-2)))RegExpSubstitute=1Substitute="^(.*[.].{#Decimals#}).(.).*$":"\1\2","1$":" ","2$":" k","3$":" M","4$":" G","5$":" T","6$":" P","7$":" E","8$":" Z","9$":" Y","[.](?!\d)":""DynamicVariables=1---Meters---[Result]Meter=StringSolidColor=0,0,0,255FontColor=255,255,255,255Text=Value: [Value]#CRLF#AutoScaled: [ValueAutoScaled]BDynamicVariables=1
Statistics: Posted by Yincognito — Today, 9:06 pm