piclist 2001\04\06\111905a >
Thread: Rounding to closest 1's multiple, code enclosed :)
face BY : Kübek Tonyemail (remove spam text)


Scott Dattalo wrote:
>I hate to do this to you, but here is simpler(?) way to round to nearest 5:

Thankfully accepted :)

{Quote hidden}

I'll be darned, I certanily hope there are no such shortcuts for
the 10's multiple, that would make my latest 3 hours a total waste :).

Brilliant !

Actually I never really thought about the 1's routine it was just
an cutNpaste job from the 10's. followed by some minor tests
to spot any obvious misstakes.

>and Bob's your uncle!

I guess :)


Tony Kübek, Flintab AB            
E-mail: tony.kubekKILLspamspamSTOPspamflintab.com

http://www.piclist.com hint: To leave the PICList

<200104061514.RAA02328@mn10.swip.net> quoted-printable

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Rounding to closest 1's multiple, code enclosed :)

month overview.

new search...