Talk:Count the coins: Difference between revisions

m
→‎rare vs. uncommon coins: added a coinage comment.
(→‎Python vs C: was a bug in C)
m (→‎rare vs. uncommon coins: added a coinage comment.)
 
(9 intermediate revisions by 3 users not shown)
Line 8:
: Well, now you are in a debate about it.
: One definitely can write D code where bignum is only used when necessary, though obviously it won't be as convenient as in languages which can manage that by itself as in Python. But you don't see people making claims like "coding in language A is about 2.7 times easier than in language B", only the speed comparisons, which is misleading by not telling the whole story. Also, unless you are confident both examples are well written within the bounds of reasonable effort, such comment doesn't really tell much. --[[User:Ledrug|Ledrug]] 14:24, 30 October 2011 (UTC)
:: yes, i agree, and i think the comparison should be removed because of that. though it might be useful to mention that the D version could be made faster by not using bignum for smaller values. that should cover all the details necessary for anyone to make their own picture when they compare solutions.--[[User:EMBee|eMBee]] 03:18, 31 October 2011 (UTC)
 
== Python vs C ==
Line 24 ⟶ 25:
 
: Turns out I forgot to add the high 8 bytes for the 128-bit addition. Surprising how it didn't bork until the very last one. --[[User:Ledrug|Ledrug]] 02:31, 31 October 2011 (UTC)
 
== rare vs. uncommon coins ==
 
Not a programming comment ... (just adding my two-bits, er, I mean 8% of that), but I would say that halves are not very rare, just uncommon.   Around these parts (upper mid-west of the US), both dollar coins and halves are common.   Now, what's very rare is a twenty-¢ piece, half disme, or a three-¢ piece.   -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:17, 24 March 2012 (UTC)
 
What's ever rarer than hen's teeth is a <big>½</big>-cent piece --- despite that there were over 7.8 million of those coins minted. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:56, 2 September 2015 (UTC)
 
<br>
-----
<br>
Also, the REXX versions support fractional cents. &nbsp; Support was added to allow specification of a half-cent and quarter-cent as &nbsp; '''1/2''' &nbsp; and &nbsp; '''1/4'''.
 
All fractional cents can be entered as (for instance) &nbsp; '''.5''' &nbsp; '''.25''' &nbsp; &nbsp; (with or without superfluous leading zeroes). &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:36, 1 September 2015 (UTC)