Post Reply 
challenge
01-19-2015, 10:52 PM
Post: #10
RE: challenge
(01-19-2015 10:32 PM)Katie Wasserman Wrote:  
(01-19-2015 10:24 PM)Don Shepherd Wrote:  Yes, in America at least, the word "and" is reserved for the decimal point. In other words, 4278.16 would be "four thousand two hundred seventy eight AND 16 hundredths." That's what we teach the kids.

Perhaps, but it's not how most adults say it, at least in my experience. I think that "four thousand two hundred seventy eight POINT sixteen" or "four thousand two hundred seventy eight SPOT sixteen" or "four thousand two hundred seventy eight POINT (or SPOT or even DECIMAL) one six" is more much common. "SPOT" is very common among wall street-type people, not so much so with non-financial people.

Wow, I never heard of SPOT before. But then again, I've never visited Wall Street. Yes, POINT is very common. I teach my students to reserve the word AND for the decimal point, but when they get out in the real world, they hear everything, like "four double naught seven" for 4007.

Here is some BASIC code for the Tandy 102, a nice little BASIC machine:
Code:

10 data 3,3,5,4,4,3,5,5,4 'one two three ... nine
20 for i=1to9:read oe(i):next
30 data 3,6,6,8,8,7,7,9,8,8 'ten eleven twelve ... nineteen
40 for i=1to10:read en(i):next
50 data 6,6,5,5,5,7,6,6 'twenty thirty forty ... ninety
60 for i=1to8:read tn(i):next
70 th=8: hu=7
80 for d4=0 to 9 'thousands digit
90 for d3=0 to 9 'hundreds digit
100 for d2=0 to 9 'tens digit
110 for d1=0 to 9 'ones digit
120 c=0 'num letters in this number
130 n=d4*1000+d3*100+d2*10+d1
140 if d4>0 then c=c+th+oe(d4)
150 if d3>0 then c=c+hu+oe(d3)
160 if d2>1 then c=c+tn(d2-1)
170 if d2=1 then c=c+en(d1+1):goto 190
180 if d1>0 then c=c+oe(d1)
190 if n mod c = 0 then a=a+1
200 next d1:next d2:next d3:next d4
210 print a
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
challenge - Don Shepherd - 01-19-2015, 03:06 PM
RE: challenge - Thomas Klemm - 01-19-2015, 07:22 PM
RE: challenge - Don Shepherd - 01-19-2015, 09:00 PM
RE: challenge - Gilles - 01-19-2015, 09:08 PM
RE: challenge - brickviking - 06-22-2018, 10:34 AM
RE: challenge - grsbanks - 06-22-2018, 10:40 AM
RE: challenge - Don Shepherd - 06-22-2018, 01:17 PM
RE: challenge - Thomas Okken - 06-22-2018, 02:22 PM
RE: challenge - burkhard - 06-22-2018, 03:10 PM
RE: challenge - Don Shepherd - 06-22-2018, 04:31 PM
RE: challenge - Don Shepherd - 06-22-2018, 06:14 PM
RE: challenge - Thomas Klemm - 01-19-2015, 09:12 PM
RE: challenge - Thomas Klemm - 01-19-2015, 09:19 PM
RE: challenge - Gilles - 01-19-2015, 09:37 PM
RE: challenge - Don Shepherd - 01-19-2015, 10:24 PM
RE: challenge - Katie Wasserman - 01-19-2015, 10:32 PM
RE: challenge - Don Shepherd - 01-19-2015 10:52 PM
RE: challenge - Gilles - 01-19-2015, 10:55 PM
RE: challenge - Hlib - 01-20-2015, 06:10 PM
RE: challenge - Gilles - 01-21-2015, 10:07 PM
RE: challenge - Hlib - 01-22-2015, 10:10 AM
RE: challenge - Hlib - 01-21-2015, 04:03 PM
RE: challenge - Don Shepherd - 01-21-2015, 04:14 PM
RE: challenge - Don Shepherd - 01-21-2015, 09:32 PM
RE: challenge - Gilles - 01-21-2015, 09:10 PM
RE: challenge - Hlib - 06-21-2018, 02:43 PM
RE: challenge - Paul Dale - 06-22-2018, 12:38 AM
RE: challenge - Don Shepherd - 06-22-2018, 01:25 AM
RE: challenge - grsbanks - 06-22-2018, 06:59 AM
RE: challenge - ijabbott - 06-22-2018, 07:24 AM
RE: challenge - grsbanks - 06-22-2018, 07:32 AM
RE: challenge - ijabbott - 06-22-2018, 04:26 PM
RE: challenge - Hlib - 06-22-2018, 10:08 PM
RE: challenge - Don Shepherd - 06-23-2018, 12:15 AM
RE: challenge - ijabbott - 06-23-2018, 09:20 AM
RE: challenge - Don Shepherd - 06-23-2018, 10:13 AM
RE: challenge - grsbanks - 06-23-2018, 10:22 AM
RE: challenge - Don Shepherd - 06-23-2018, 10:42 AM
RE: challenge - grsbanks - 06-23-2018, 10:48 AM
RE: challenge - Massimo Gnerucci - 06-23-2018, 12:45 PM
RE: challenge - Thomas Okken - 06-23-2018, 04:49 PM
RE: challenge - Massimo Gnerucci - 06-23-2018, 06:41 PM
RE: challenge - grsbanks - 06-23-2018, 07:38 PM
RE: challenge - Massimo Gnerucci - 06-23-2018, 08:42 PM



User(s) browsing this thread: 3 Guest(s)