Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'bc eats decimals' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
bc eats decimals
Authored by: VRic on Aug 11, '04 02:15:51PM

Not the same. bc truncates decimals. I suppose there's an option somewhere but I doubt that's the default behavior most people expect from a calculator.

Examples:

Applescript (as typed/returned in Smile's worksheet -- spaces are added automatically around operators at runtime):
3 / 2
-- 1.5

bc (as typed/returned in Terminal, bc 1.05, Mac OS X 10.3.4):
3/2
1



[ Reply to This | # ]
Re: bc eats decimals
Authored by: sjk on Aug 12, '04 01:59:24PM
Try bc -l (dash-el).

[ Reply to This | # ]