DIG command not working
Hello,
I know this has to be easy, but I just don't know which commands to use.
I am receiving a number from the Pak-II math co-processor. Before receiving
the number there were three digits behind the decimal point that were of
concern to me and that I want to display on a LCD screen, so I multiplied it by
1000 so now I can receive a whole number. Now that I have the number, I need
to display it correctly, so from the five numbers of this word, I need to show
only the first two numbers on an LCD screen, then a "." and then the last three
numbers.
I've tried to use the DIG command, but that seems to only work within Debug.
Please let me know if anyone has an easy solution.
--
Stewart Mayer, stewlist@k... on 12/04/2001
I know this has to be easy, but I just don't know which commands to use.
I am receiving a number from the Pak-II math co-processor. Before receiving
the number there were three digits behind the decimal point that were of
concern to me and that I want to display on a LCD screen, so I multiplied it by
1000 so now I can receive a whole number. Now that I have the number, I need
to display it correctly, so from the five numbers of this word, I need to show
only the first two numbers on an LCD screen, then a "." and then the last three
numbers.
I've tried to use the DIG command, but that seems to only work within Debug.
Please let me know if anyone has an easy solution.
--
Stewart Mayer, stewlist@k... on 12/04/2001
Comments
The DIG command should work for you. Can you show us a snip of your
code?
Al Williams
AWC
* Easy RS-232 Prototyping
http://www.al-williams.com/awce/rs1.htm
>
Original Message
> From: Stewart Mayer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yexfJN_JDq5VRJdWuledRXNU0TFDKYFfl1L7vCKaZ0hR6EcfZH8A2XnnoAj7jX_AUyU-BHQH5bAWXj0zFxVDO0E]stewlist@k...[/url
> Sent: Tuesday, December 04, 2001 7:42 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] DIG command not working
>
>
> Hello,
>
> I know this has to be easy, but I just don't know which
> commands to use.
>
> I am receiving a number from the Pak-II math co-processor.
> Before receiving
> the number there were three digits behind the decimal point
> that were of
> concern to me and that I want to display on a LCD screen, so
> I multiplied it by
> 1000 so now I can receive a whole number. Now that I have
> the number, I need
> to display it correctly, so from the five numbers of this
> word, I need to show
> only the first two numbers on an LCD screen, then a "." and
> then the last three
> numbers.
>
> I've tried to use the DIG command, but that seems to only
> work within Debug.
> Please let me know if anyone has an easy solution.
>
>
>
> --
> Stewart Mayer, stewlist@k... on 12/04/2001
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
After seeing your e-mail I experimented some more and added the DEC argument
into the mix and got it working correctly. Thanks.
stewart
Temp VAR word
SEROUT 2, 16624, [noparse][[/noparse]Position, DEC 4, " FPS = ", DEC Temp DIG 3, DEC Temp DIG 2,
".", DEC Temp DIG 1, DEC Temp DIG 0]
On Tue, 4 Dec 2001 20:50:27 -0600, Al Williams wrote:
>Hi Stewart,
>
>The DIG command should work for you. Can you show us a snip of your
>code?
>
>Al Williams
>AWC
>* Easy RS-232 Prototyping
>http://www.al-williams.com/awce/rs1.htmx
>
>>
Original Message
>>From: Stewart Mayer [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nRUojhz8HrGn4tdyZ_YwaGOy2aF0Ix-A9zQR-tZzgD6V5bLy136aTT_t7C3ugQ422B5-vxg6NScZO5j4orefWHRutv0]stewlist@k...[/url
>>Sent: Tuesday, December 04, 2001 7:42 PM
>>To: basicstamps@yahoogroups.com
>>Subject: [noparse][[/noparse]basicstamps] DIG command not working
>>
>>
>>Hello,
>>
>>I know this has to be easy, but I just don't know which
>>commands to use.
>>
>>I am receiving a number from the Pak-II math co-processor.
>>Before receiving
>>the number there were three digits behind the decimal point
>>that were of
>>concern to me and that I want to display on a LCD screen, so
>>I multiplied it by
>>1000 so now I can receive a whole number. Now that I have
>>the number, I need
>>to display it correctly, so from the five numbers of this
>>word, I need to show
>>only the first two numbers on an LCD screen, then a "." and
>>then the last three
>>numbers.
>>
>>I've tried to use the DIG command, but that seems to only
>>work within Debug.
>>Please let me know if anyone has an easy solution.
>>
>>
>>
>>--
>>Stewart Mayer, stewlist@k... on 12/04/2001
>>
>>
>>
>>To UNSUBSCRIBE, just send mail to:
>>basicstamps-unsubscribe@yahoogroups.com
>>from the same email address that you subscribed. Text in the
>>Subject and Body of the message will be ignored.
>>
>>
>>Your use of Yahoo! Groups is subject to
>>http://docs.yahoo.com/info/terms/
>>
>
>
>To UNSUBSCRIBE, just send mail to:
>basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body
of the message will
>be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--
Stewart Mayer, stewlist@k... on 12/05/2001