Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3205
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Need help to convert |
| Message-ID | <vet2s3d48eb7542n3vtkipbnc43m6v7q8d@4ax.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <90fadcfb-4497-48c9-a2d8-ca3af6c42894@s13g2000prd.googlegroups.com> |
| Date | 2011-04-27 15:43 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Sat, 23 Feb 2008 20:42:18 -0800 (PST), Katak <vampireex@hotmail.com> wrote, quoted or indirectly quoted someone who said : >Sorry. I think it was meant to be exponent since I was doing decimal = >binary * 2^1 , decimal = binary * 2*2, etc. Named it wrongly. In that case you can often use a loop to incrementally create a power, especially if you need to intermediate values. pow *= base; You can create powers of two with left shifts. e.g. 1 << 3 == 8 -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Need help to convert "Katak" <katak@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Katak" <katak@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Katak" <katak@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Need help to convert "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
csiph-web