INTERACT FORUM

More => Old Versions => JRiver Media Center 31 for Windows => Topic started by: gappie on November 19, 2023, 07:30:09 am

Title: math with now() not working?
Post by: gappie on November 19, 2023, 07:30:09 am
hi  8)
i am wondering if something changed, because it seems like the math function does not work anymore with now(). i have a few fields that use this.

but doing
Code: [Select]
math(now()-1)gives a 0

used to work

gab
 :)
Title: Re: math with now() not working?
Post by: lepa on November 19, 2023, 08:29:31 am
If your system has comma as decimal point you probably need to wrap now() inside decimal() function:
Math(Decimal(Now()) - 1)
Title: Re: math with now() not working?
Post by: gappie on November 20, 2023, 02:53:32 am
If your system has comma as decimal point you probably need to wrap now() inside decimal() function:
Math(Decimal(Now()) - 1)
thank you, that worked. i guess i changed something on my system, since i never had to use that.