|
|
| Author |
Message |
|
| uwiger |
Posted: Tue Jul 03, 2007 10:52 am |
|
|
|
User
Joined: 03 Jul 2006
Posts: 604
Location: Sweden
|
Is it just me, or is this behaviour surprising?
4> <<255>>.
<<" |
|
|
| Back to top |
|
| dmitriid |
Posted: Tue Jul 03, 2007 11:51 am |
|
|
|
User
Joined: 17 Aug 2006
Posts: 213
|
Ulf Wiger (TN/EAB) wrote: Quote: surprising bit syntax
Is it just me, or is this behaviour surprising?
4> <<255>>.
<<" |
|
|
| Back to top |
|
| Guest |
Posted: Tue Jul 03, 2007 1:26 pm |
|
|
|
Guest
|
8 bits you pump in 999 which would be 03 E7, so what happens e7 rolls
over 3 times so e7 in decimal is nnananna = 231. what you would need
to do is make <<I:8/integer>> is <<I:16/integer>>
hope this helps
mog
On 7/3/07, Dmitrii 'Mamut' Dimandt <dmitriid@gmail.com> wrote:
>
> Ulf Wiger (TN/EAB) wrote:
>
>
>
> Is it just me, or is this behaviour surprising?
>
> 4> <<255>>.
> <<" |
|
|
| Back to top |
|
| uffe |
Posted: Tue Jul 03, 2007 1:53 pm |
|
|
|
User
Joined: 02 Mar 2005
Posts: 365
Location: Sweden
|
Well, I was just goofing around with term comparisons, and
came across something unexpected. It's logical, of course,
but it should be documented.
BR,
Ulf W
2007/7/3, Matthew O'Gorman <mogorman@astjab.org>:
> 8 bits you pump in 999 which would be 03 E7, so what happens e7 rolls
> over 3 times so e7 in decimal is nnananna = 231. what you would need
> to do is make <<I:8/integer>> is <<I:16/integer>>
>
> hope this helps
>
> mog
>
> On 7/3/07, Dmitrii 'Mamut' Dimandt <dmitriid@gmail.com> wrote:
> >
> > Ulf Wiger (TN/EAB) wrote:
> >
> >
> >
> > Is it just me, or is this behaviour surprising?
> >
> > 4> <<255>>.
> > <<" |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|