View Single Post
Old 12-24-2017, 01:10 AM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,772
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Worms. Big can of.
You are going to slam into filename length limits, way faster .
what happens with higher number series (volume #)?
one-hundred-twenty-seven

some while back, I saw the code to write out the amount on a chech from the numeric value. it was a few dozen lines as it had to parse numbers like seventeen and not as one seven. It needs to put dashes and 'and' in the proper place.
Not simple
Typically what one does is to put limits on the size of the integer part and the number of decimals the function can handle. So for a tax refund cheque writing function, it might be '1,000,000,000,000' and '2'. In this case I would think '1,000' and '1' would probably suffice.

Just for fun, here's some vaguely relevant Word macros from someone you or DoctorOhh might even know ==>> Spell Out Currency

@Thorned Rose - I suspect one of the programmers can chime with a solution, after the holiday - probably written in python encapsulated in a calibre template - way beyond my tired old brain's pay grade.

BR

Last edited by BetterRed; 12-24-2017 at 01:22 AM.
BetterRed is offline   Reply With Quote