44.1 Okay But 48.0 Should Be Just 48

Started by Darius1968, April 08, 2025, 07:33:46 AM

Previous topic - Next topic

Darius1968


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? 

sinus

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.
Best wishes from Switzerland! :-)
Markus

Mario