EUA@PSUVM.BITNET (Mel DeYoung) (04/19/88)
Probably HyperCard provides an easy way to get a two decimals value from any number, but I haven't run across it. I want to get numbers to fit neatly in a narrow field, and I need only a couple of decimal places. I imagine quite a few people will want to use this feature when dealing with money, but how do I do it? I want to go from numbers like 1.9874578, 3.981635, and 2.762349 to 1.99, 3.92, and 2.76. Any ideas?
bayes@hpfcdc.HP.COM (Scott Bayes) (04/22/88)
Re decimal formatting: An explanation of how to do this is in the HyperCard Help Stack I believe, under HyperTalk. Memory is weak at this point, and I can't remember offhand how to do it, but I believe you set global property numberFormat to "0.##" or something like that. Scott Bayes "My hovercraft is full of dead parrots"
ns@CAT.CMU.EDU (Nicholas Spies) (04/22/88)
For display purposes, use set numberFormat to "0.00" See Help stack for details. -- Nicholas Spies ns@cat.cmu.edu.arpa Center for Design of Educational Computing Carnegie Mellon University