Results 1 to 8 of 8

Thread: One Hundred Dollars

Threaded View

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    One Hundred Dollars

    A class to convert a decimal variable into its spoken word equivalent string...

    123.45 converts to "ONE HUNDRED AND TWENTY THREE DOLLARS, FORTY FIVE CENTS". It could be modified to remove the dollars and cents strings.

    It can convert numbers in the range 0 to 1.0E+25 inclusive, so no negative numbers please.

    Call it like this...

    VB Code:
    1. MessageBox.Show(CashToWords.WriteNumberInWords(Decimal.Parse("123.45")))

    Its a shared method so there's no need to create an instance of the class first.

    Enjoy
    Attached Files Attached Files
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width