comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: AVR Usart send number string with no 'Image
Date: Wed, 01 May 2013 15:30:14 -0700
Date: 2013-05-01T15:30:14-07:00	[thread overview]
Message-ID: <kls4rd$uit$1@dont-email.me> (raw)
In-Reply-To: <21fb4738-c996-4afd-9e55-97e1549f5d63@googlegroups.com>

On 05/01/2013 03:07 PM, Rego, P. wrote:
>
> No, I am testing with
>
>     Put (Data => Unsigned_8_To_String (IMAGE.String_To_Unsigned_8 ("523")));

523 isn't a valid value for an Unsigned_8. Since operations on modular types 
wrap, you're getting 523 mod 256 = 11.

-- 
Jeff Carter
"I would never want to belong to any club that
would have someone like me for a member."
Annie Hall
41


  reply	other threads:[~2013-05-01 22:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25  1:27 AVR Usart send number string with no 'Image Rego, P.
2013-04-25  2:03 ` Shark8
2013-04-25 10:55   ` Rego, P.
2013-04-26  2:28     ` Rego, P.
2013-04-26  5:50       ` Simon Wright
2013-04-30  2:58         ` Rego, P.
2013-04-26 14:52       ` Shark8
2013-04-26 21:10         ` Shark8
2013-04-30  3:00           ` Rego, P.
2013-04-25  4:54 ` rrr.eee.27
2013-04-25 10:58   ` Rego, P.
2013-05-01 20:35 ` Rego, P.
2013-05-01 21:00   ` Simon Wright
2013-05-01 22:07     ` Rego, P.
2013-05-01 22:30       ` Jeffrey Carter [this message]
2013-05-01 22:46         ` Rego, P.
2013-05-01 23:29       ` Dennis Lee Bieber
2013-05-01 22:32   ` Shark8
2013-05-01 23:00     ` Rego, P.
2013-05-01 23:09       ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox