Decimal Places?

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Eiskrap
Posts: 6
Joined: Sun Jun 14, 2009 2:26 pm

Decimal Places?

Post by Eiskrap » Sat Jul 18, 2009 5:05 pm

Hi

I've converted an old script to rate my albums based on the song ratings. However it gives a rating to several decimal places, is there any code I can add to have it just show 1 decimal place?

Thanks,

E

Peke
Posts: 12500
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Decimal Places?

Post by Peke » Sat Jul 18, 2009 7:37 pm

Use http://www.w3schools.com/VBScript/func_round.asp function to limit decimal spaces.
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

Eiskrap
Posts: 6
Joined: Sun Jun 14, 2009 2:26 pm

Re: Decimal Places?

Post by Eiskrap » Sun Jul 19, 2009 2:51 am

brilliant, exactly what I needed, thanks!

Peke
Posts: 12500
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Decimal Places?

Post by Peke » Sun Jul 19, 2009 6:17 am

Been my pleasure, new scripters are always welcome to Community.
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

Post Reply