Customizing Filter Protos

newtNumberFilter/newtIntegerFilter

You can customize how a number is displayed with a format slot:

format
String. This takes a string that specifies a numeric format that is suitable for FormattedNumberStr. It is similar to the numeric format for the c sprintf function. For example, "%0.2f" would format 3 as "3.00" and 3.127 as "3.13".


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996