I know there is corruption in many places in the world. In Mexico, the police are so corrupt that the gangsters kill the police chiefs and mayors of cities. It takes only about three hours for me to go to Tijuana in Mexico and the contrast between here and there is huge.
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.
To see the number in Excel, just change the format of the cell.
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.
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;
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");
Sam HobbsPosted Aug 21, 2011, 10:19 PM
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.
Mahesh ChandPosted Aug 21, 2011, 1:02 PM
Suthish NairPosted Aug 21, 2011, 1:02 AM
Sam HobbsPosted Aug 20, 2011, 1:13 AM
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?
Satyapriya NayakPosted Aug 19, 2011, 8:09 AM
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
Sivaraman DhamodaranPosted Aug 19, 2011, 7:01 AM
Vilas GitePosted Aug 19, 2011, 2:28 AM
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?
Jaganathan BantheswaranPosted Aug 19, 2011, 2:26 AM
Its Big challenge to recover.....
Can we ?
Mahesh ChandPosted Aug 19, 2011, 2:03 AM