Welcome Guest | My Membership | Login

Tech Tip - Number to Word Conversion


Summary

Some of your business processes are complex, some are simple. Let's look at check writing as an example. This is a really simple process, but you can run into one small snag.

When writing checks, you likely want to spell out the dollar amount that the check is for as an additional security feature.

$1023.23 = One Thousand Twenty-Three and Twenty-Three Cents.

There is no OCONV function that will do this for you, so this simple little program will likely come in handy:

NUMBER = "127.35"
CALL NUMBER.TO.ALPHA(NUMBER,INT.WORD,DEC.WORD,"0")
CRT "NUMBER: ": NUMBER
CRT "WORD: ": INT.WORD :" AND ": DEC.WORD :" CENTS"
END

This will produce the following results:

NUMBER: 127.35
WORD: ONE HUNDRED TWENTY-SEVEN AND THIRTY-FIVE CENTS

In addition to converting numbers into dollar formats, you may need to convert it into a alpha counting formats, such as:

NUMBER: 127.35
WORD: ONE HUNDRED TWENTY-SEVENTH POINT THIRTY-FIFTH

You can download the code for this subroutine from:

http://www.intl-spectrum.com/resource/173/Numeric_To_Alpha_Conversion.aspx

Read More...

Social Media Login

Use your existing social media logins to access your Membership/Subscription information.

Existing Magazine/Newsletter Subscriber (Quick Access)

If you are an existing International Spectrum subscriber, but have not registered with the website, please enter the Reference Code found on the magazine or in the e-mails you receive from us.

Magazine Reference Code location

Spectrum Login

New Subscriber

If you currently do not receive the Magazine or other emails from International Spectrum, select the "Subscribe" button below to create an new membership account.


 

Find out more about the different between the FREE and a Professional Membership at:
Compare Account Options

 

# # #          # # #          # # #

 

Related Articles

  • From the Inside Sep/Oct 2010

    Company: International Spectrum

    Resources! Resources! Where can you find them? Where do I get the training needed for new developers?

  • Data Security, have you considered it?

    Company: NorthgateArinso

    Data Security: Have You Considered It? Data security is no longer optional. Stealing data is big business. Hundreds of thousands of dollars are lost daily, organizations reputations destroyed, and individuals' lives thrown into chaos due to data breaches. Explore the various aspects of this most important topic and see if there are some issues you might have overlooked.

  • Silverlight-enable Your MultiValue Database Application

    Company: BlueFinity International

    Most people who use the Internet are aware of Microsoft's Silverlight browser plug-in. Much more than just another way to watch online movies, Silverllight provides a platform within which large portions of applications can be developed. Find out more about this latest web architecture and how and mv.NET enables you to tie it in to your MultiValue data.

  • Pavuk Internet Development Framework v2.0 - Part 1 - Introduction

    Company: Pavuk Systems Database: OpenQM

    Introduction In order to survive and thrive in the modern information processing world, MultiValue applications need to put on a new GUI face as quickly as possible. Pavuk Internet Development Framework is a browser-based tool in this effort. Discover how it approaches the problem in this introduction.

  • Extending OpenInsight's O4W Web Development Toolkit with jQuery Plugins

    Company: Revelation Software Database: OpenInsight

    The new O4W web development toolkit included in OpenInsight 9.2 generates dynamic output using JavaScript, HTML, and Ajax and is based on an open-source library called jQuery. The jQuery library has hundreds of plug-ins available to help you create web pages that really sizzle. Find out how to make these available to O4W.


Return to top