[RC5] Hostage -> bc example

Wayne Collins wayncoll at enoreo.on.ca
Wed Nov 19 22:25:24 EST 1997


RTFM

On SCO (and every other bc I've run across):

[dev]% bc
scale=2
5/2
2.50
scale=12
3000/2^28
.000011175870
obase=16
2^28
10000000
3000/2^28
.0000BB7FFF
[dev]%

Please reply by email or take it to alt.not.rc5.discussion.

ttys
wayne

--
Wayne Collins
Education Network of Ontario
mailto:wayncoll at enoreo.on.ca

-----Original Message-----
From:	Daniel Baker [SMTP:dbaker at wrangler.cuckoo.com]
Sent:	Wednesday, November 19, 1997 8:11 PM
To:	rc5 at llamas.net
Subject:	Re: [RC5] Holding blocks hostage

(snip)
> 
> Well... actually, 3000 / 2^28, if we assume he has 3000 blocks instead of
> 3000 keys.  And for those too lazy to whip out 'bc' (or their local
> equivalent) that's about 0.000011.

What kind of bc do you have that does float and gives decimal answers?

wrangler % bc
bc 1.03 (Nov 2, 1994)
Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
5/2
2

Daniel


--
To unsubcribe, send 'unsubscribe rc5' to majordomo at llamas.net
rc5-digest subscribers replace rc5 with rc5-digest



More information about the rc5 mailing list