Help - Search - Members - Calendar
Full Version: TAGZ semantic inquiry
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
elenhil
Can I operate with non-integral (fractional) values? For example, I'd like to output the difference between album and track replaygain, but I cannot substract one from another because $sub operates with integer values only (while RG is fractional most of the time).
iStormy
If TAGZ doesn't do floating point, you can fake it.

Pull the number apart at the . and do the math for each side separately, then display the two results with a . in the middle. It'll take a little figuring to come up with the right algorithm to account for carrying-the-1-type issues.
NEMO7538
$replace(%__replaygain_track_gain%,.,, dB,)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.