this is our money(black)..

Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Mahesh ChandRank #1 · 393.4K reputationPosted Aug 18, 2011, 10:03 PM EDT
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Aug 18, 2011, 10:26 PM EDT
Its Big challenge to recover.....
Can we ?
Vilas GiteRank #951 · 2.1K reputationPosted Aug 18, 2011, 10:28 PM EDT
Hi
Jeetu & Mahesh Sir, when I try to type this value in MS Excel it shows like that 9.10603E+14
We can create some simple program to convert this value into Rupees in word?
Sivaraman DhamodaranRank #40 · 34.5K reputationPosted Aug 19, 2011, 3:01 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted Aug 19, 2011, 4:09 AM EDT
simple program to convert this value into Rupees in word?
Here is one example (4 digit Number Only)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Number_to_word_in_csharp
{
public partial class Form1 : Form
{
int n = 0;
string x = null;
public Form1()
{
InitializeComponent();
}
private void Button1_Click(object sender, EventArgs e)
{
string[] a = {
"One",
"Two",
"Three",
"four",
"Five",
"Six",
"Seven",
"Eight",
"Nine",
"Ten",
"Eleven",
"Twelve",
"Thirteen",
"fourteen",
"Fifteen",
"Sixteen",
"Seventeen",
"Eighteen",
"Ninteen"
};
string[] b = {
"Twenty",
"Thirty",
"Fourty",
"Fifty",
"sixty",
"Seventy",
"eighty",
"ninty"
};
x = "";
n = int.Parse(textBox1.Text);
if ((n <= 9999))
{
if ((n > 999 & n <= 9999))
{
x += a[(n / 1000) - 1] + "Thousand";
n = n % 1000;
}
x += " ";
if ((n > 99 & n <= 999))
{
x += a[(n / 100) - 1] + "Hundred";
n = n % 100;
}
x += " ";
if ((n > 19 & n <= 99))
{
x += b[(n / 10) - 2];
n = n % 10;
}
x += " ";
if ((n > 0 & n <= 19))
{
x += a[n - 1];
}
textBox1.Text = x;
}
else
{
textBox1.Text = ("Number is out of range");
}
}
}
}
Thanks
Sam HobbsRank #108 · 20.5K reputationPosted Aug 19, 2011, 9:13 PM EDT
I think the number is 910603234300000, which is 15 digits. There are 5 zeroes at the right end, correct?
Then when formatted by Excel, it is 910,603,234,300,000. Another way to say that is 910 trillion, 603 billion, 234 million and three-hundred thousand. I think it is nearly 20 trillion USD.
Does anyone see a mistake in any of that?
Suthish NairRank #92 · 22.8K reputationPosted Aug 20, 2011, 9:02 PM EDT
Mahesh ChandRank #1 · 393.4K reputationPosted Aug 21, 2011, 9:02 AM EDT
Sam HobbsRank #108 · 20.5K reputationPosted Aug 21, 2011, 6:19 PM EDT
On a totally off-topic subject, I did not receive notification of the last reply (Mahesh's) in this thread. Perhaps they are just delayed by a few hours and the notification will arrive later.