Good morning,

I have this I took from a FET from one of Udo's help threads and
modified:

        function getYearsLeftText(tiddler) {
                return ((getDaysBetween(new Date(),parseDate(tiddler.title, new 
Date
())))/-365)+" years old: ";
        }
'

write
        'getYearsLeftText(tiddler)+"[["+tiddler.title+"]] →
"+getFirstLine(tiddler.text)+"\n"'


It does what I need, but it returns a number with 14 decimal places.
Is there a way to get it to round to 1 or 2 decimal places?

Thanks,
Dave Parker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to