Equivalent of int( )

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Equivalent of int( )

Postby Anne Verrinder » Sun Apr 18, 2004 5:14 am

Is there an equivalent in Javascript for the int () function in FMP? Looked through the Math.stuff ...

Thanks!
Anne Verrinder
 
Posts: 24
Joined: Wed Feb 25, 2004 1:43 am
Location: New Jersey

Postby Jan Aleman » Sun Apr 18, 2004 11:39 am

floor(x)

http://devedge.netscape.com/library/man ... ml#1196455

Math.floor(3.92)
returns: 3
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby mnorman » Sun Apr 18, 2004 1:09 pm

Code: Select all
Is there an equivalent in Javascript for the int () function in FMP? Looked through the Math.stuff ...


Anne,

This information, along with the Servoy (or JavaScript) equivalent to every FileMaker calculation function (pre FM7), is also available in the Servoy Advanced Programming Guide for FileMaker Developers

This book is available for purchase from the Servoy Store or you can download a pdf file of the book from Servoy on the Developers/Documentation page.

______________
Marc Norman
Servoy
mnorman
 
Posts: 106
Joined: Wed Sep 24, 2003 8:50 pm
Location: Alturas, CA

Thanks for the RTFM reminder

Postby Anne Verrinder » Sun Apr 18, 2004 4:02 pm

Thank you Jan and Marc. I eventually did think to look in the Adv. Prg. Guide (an amazing rsource). Appreciate the ready support!
Anne Verrinder
 
Posts: 24
Joined: Wed Feb 25, 2004 1:43 am
Location: New Jersey


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 17 guests

cron