Perhaps we could start some spam emails "get bigger temprature .... click here"
Peter On Thu, 7 Aug 2003 17:33:17 +0100, kevin furze <[EMAIL PROTECTED]> wrote: >It sounds like a classic case of "Mine's bigger than your's" ;-) > > > >Reevan Benjamin wrote: >> >> In Las Vegas, Nevada, USA we hit 41C yesterday! And that was cool >> for us! Reevan >> "kevin furze" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Ram�n >> > thanks but you misread a bit of the thread ; - {{ >> > here is the UK, we JUST recorded 35.9C today. - and for the UK, >> > that's hot t t t the average for this time of the year is just 20 - >> > 21c and we would normally be wrapped up in scarfs and hats and >> > coats ! >> > >> > the rest of the thread, yup, you got it right, thanks for the good >> > answer >> > >> > regards >> > >> > kevin >> > >> > Ram�n Jim�nez wrote: >> > > >> > > Kevin, >> > > >> > > Glad to hear that the UK is around 21... Santo Domingo is >> > > scorching around 35, good you're not here! :) >> > > >> > > First a slight digression: you might want to look into the $BIT >> > > function and see if that makes it easier for you to flag several >> > > on/off options. That being said, here is some code to honor your >> > > original request (and then some :) ): >> > > >> > > Dec2Bin(Number) >> > > SET Result = "" >> > > WHILE Number { >> > > SET Result = Result _ ( Number # 2 ) >> > > SET Number = Number \ 2 >> > > } >> > > WRITE Result,! >> > > QUIT >> > > >> > > Bin2Dec(Number) >> > > SET Result = 0 >> > > SET Power = 1 >> > > // >> > > FOR i=$LENGTH(Number):-1:1 { >> > > SET Result = Result + ( $EXTRACT(Number,i)* Power ) >> > > SET Power = Power * 2 >> > > } >> > > WRITE Result,! >> > > >> > > There is some generic way to write them into a single method, >> > > though.. . But this should get you started :) >> > > >> > > HTH, >> > > >> > > Ram�n >> > >> > >
