[Icc-avr] Re: sprintf limitation?

Paul Mateer paul.aa9gg at gmail.com
Mon Jul 7 08:11:19 PDT 2008


That works too :)

On Mon, Jul 7, 2008 at 9:55 AM, Andy Syms <asyms at technosoft.co.uk> wrote:

> >  Thanks for the responses.  I found the problem:
> >
> > a = (VAL[0] - 48) * 10000;
>
> Try using
>
> a = (VAL[0] - 48) * 10000L;
>
> to cause the expression to be evaluated as a long and not an int.
>
>
> Andy.
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
>



-- 
Paul Mateer, AA9GG
Elan Engineering Corp.
www.elanengr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080707/7b1f2f46/attachment.html


More information about the Icc-avr mailing list