× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: DDS screen: how to ensure field keyed is numeric for alpha-descri bed field
  • From: "Richard Jackson" <richardjackson@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 12 Jul 2000 20:57:38 -0600
  • Importance: Normal

Look up MI instruction CVTEFN.  I know that it will directly create a packed
or zoned, I don't recall if it will directly create a float.  If it won't
directly create a float we could create a packed or zoned intermediate value
then use CPYNV to copy the packed or zoned into a float or one of the
conversion instructions.

You have to feed this instruction some information about the input and the
output but it does all the work in hardware instructions.  I always thought
that it was a splendid instruction but had very few uses for it in my
applications.

sure, it could do all of that kind of thing if someone wanted to put the
work in.  It could be made to adapt to different and output values.

Richard Jackson
mailto:richardjackson@richardjackson.net
www.richardjacksonltd.com
Voice: 1 (303) 808-8058
Fax:   1 (303) 663-4325

-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of Peter Dow
Sent: Wednesday, July 12, 2000 7:19 PM
To: MIDRANGE-L@midrange.com
Subject: Re: DDS screen: how to ensure field keyed is numeric for
alpha-descri bed field


From: Richard Jackson <richardjackson@richardjackson.net>
> Imagine divides by 10 in a loop to move the decimal place to the left and
> multiplies by 10 in a loop to move it to the right.

Ouch!


>There is also instruction "copy external form to numeric" to
> convert character values to numeric values that could have been used

Now that sounds interesting. What are the details? Could we have a simple,
fast MI program that does what C2N, atof, atoi, etc. do?


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.