photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on April 08, 2025, 07:33:46 AM

Title: 44.1 Okay But 48.0 Should Be Just 48
Post by: Darius1968 on April 08, 2025, 07:33:46 AM

Given:  {File.MD.Matroska::Main\53\AudioSampleRate\0|value:formatted;math:div,1000,1},
for the purpose of outputting the sample rate of the audio track. 

I DO want the decimal point to enumerate for values 1-9, but NOT for 0.  When my sample rate is 48.0 Khz., for example, how can I suppress the "0" for this value? 
Title: Re: 44.1 Okay But 48.0 Should Be Just 48
Post by: sinus on April 08, 2025, 07:46:03 AM
I do not know really, I would try something like adding at the end something like replace .0 with nothing. Means lookung up in the variable help for replace.

But could be, that there is a better way.
Title: Re: 44.1 Okay But 48.0 Should Be Just 48
Post by: Mario on April 08, 2025, 10:11:45 AM
Use replace?