I might lose something important at this point, but unlike Yincognito, I suspect something different here. What I believe is that you want to get the number returned by the not-posted [MeasurePrice11] measure with certain number of decimals, while [MeasurePrice11] is most probably a WebParser measure, isn't it? If I'm right and it really is, there is another problem: a WebParser measure returns its result as a string, even if that's in fact a number. Due to this, applying the NumOfDecimals option is vain: it has no effect in such cases. To get it applied, you have to either pass the returned value through a Calc measure (this is a little bit more complicated solution, because you need an additional Calc measure), or have to use a properly written section variable in the [MetersingleValue11b] String meter. So, both of the following two solutions should work:what i want is that the output of 1% is with max 5 decimals, but still with 10. I collect the data with 10 and i want the script to calculate with all 10, but the output only with 5. I probably doing something wrong, but wat?
- Solution 1:
Code:
[MeasurePrice11C]Measure=CalcFormula=MeasurePrice11...[MetersingleValue11b]Meter=StringMeasureName=MeasurePrice11CText=%1 EuroX=125RY=rStringAlign=RightFontColor=117,199,235,255NumOfDecimals=5DynamicVariables=1
- Solution 2:Note in this case the [MeasurePrice11:5] section variable, used into the Text option: the :5 parameter tells Rainmeter to show the result with 5 decimals. Obviously you can adjust the number of needed decimals simply by using the proper number. In this case the NumOfDecimals option is not needed and has no effect (even if you add it).
Code:
[MetersingleValue11b]Meter=StringText=[MeasurePrice11:5]X=125RY=rStringAlign=RightFontColor=117,199,235,255DynamicVariables=1
Statistics: Posted by balala — Today, 7:40 pm