hai all, i want to convert indian rupees into words, is there any function in javascript or any useful links are appreciated.. how to convert indian rupees to words for ex 234.45=Two hundred thirty four rupees and fourty five paise only. this want for any number upto billions..

Member Avatar
Member Avatar
+0 forum 21

i want to write a program of 10 bank account users. then i want a help , how i write a program. in program i need a print or out put of 10 bank user like name,account no,branch no,account amount. if user press Yes then it gives the out put of next user, if user press No then it shows the prewious account user information.

Member Avatar
Member Avatar
+0 forum 1

Hi I am doing a Tizag tutorial.I have created this table products with phpMyAdm in and started to populate the field.When it comes to price if I insert 13.99 the amount is rounded up to 14.I have tried everything changing to decimal, float, double but nothing seems to work,it keeps rounding up the amount.Can somebody figure out what is the problem? This is important as I'll have to insert decimal values a lot.Thank you.

Member Avatar
Member Avatar
+0 forum 3

I've been getting problems with my formula to total the deposit and price. I'm getting and error on this line $total += $total + $deposit['deposit'] * $pamount['price_status']; Here's more but only an error with the total. $prod_refid=$_REQUEST['refid']; $productsql="select * from products where prod_refid='$prod_refid'"; $resquery = @mysql_query($productsql); $resproduct_fetch=mysql_fetch_array($resquery); $image_path="products/"; $thumb_path="products/thumb/"; $product_id=$resproduct_fetch['product_id']; $prod_refid=$resproduct_fetch['prod_refid']; $product_image=$resproduct_fetch['product_image']; $product_name=$resproduct_fetch['product_name']; $prod_country=$resproduct_fetch['prod_country']; $price_range=$resproduct_fetch['price_range']; $pamount = number_format($price_range, 2, '.', ''); $price_hour=$resproduct_fetch['price_hour']; $price_hour = number_format($price_hour, 2, '.', ''); $price_week=$resproduct_fetch['price_week']; $price_week = number_format($price_week, 2, '.', ''); $price_month=$resproduct_fetch['price_month']; $price_month =number_format($price_month, 2, '.', ''); //$pamount = number_format(((float)$price_range),2); $deposit=$resproduct_fetch['deposit']; $deposit = number_format($deposit, 2, '.', ''); $prod_userid=$resproduct_fetch['prod_userid']; $prod_usertype=$resproduct_fetch['prod_usertype']; $prod_desc=$resproduct_fetch['prod_desc']; $prod_minduration=$resproduct_fetch['prod_minduration']; $prod_maxduration=$resproduct_fetch['prod_maxduration']; $prod_avail_days=$resproduct_fetch['prod_avail_days']; $prod_paymethod=$resproduct_fetch['prod_paymethod']; $total += $total + $deposit['deposit'] * $pamount['price_status']; $cntry_sql=mysql_query("select country,countrycode,country_abbr from country where countryid ='".$prod_country."' …

Member Avatar
Member Avatar
+0 forum 9

Let's say I have an array/arraylist(doesn't matter) with the following content: 2, 2, 2, 4, 5, 5, 8, 8, 8. How wold I go about counting the different values, in other words; how would I find out that there are 3 twos, one 4, 2 fives and 3 eights. How would like to get an attay(or arraylist for that matter) with the content: 3, 1, 2, 3. How would I go about doing that?

Member Avatar
Member Avatar
+0 forum 3

hi, I already know how to use setprecision but the function wont let the round go up past 16. [CODE]#include<iostream> #include<stdio.h> #include<math.h> #include<iomanip> using namespace std; int main () { double pi = 3.14159265358979323846264338327950288419716939937510; cout << setprecision(50) << pi << endl; system("pause"); } [/CODE] the output is just 3.1415926535897931 the code to force it to go past 16 would be something like this: [CODE]#include<iostream> #include<stdio.h> #include<math.h> #include<iomanip> using namespace std; int main () { double pi = 3.14159265358979323846264338327950288419716939937510; cout << force_max_digits_setprecision(50) << pi << endl; //I just added "force_max_digits_" system("pause"); } [/CODE] any solutions? Thanks.

Member Avatar
Member Avatar
+0 forum 4

I designed an invoice system that add rows automatically and computes the results, print it in another file that can be downloaded by other users.can i get help on how to multiply the price and quantity to get amount? this is my code: <SCRIPT LANGUAGE="JavaScript"> function showamt() { //var unitprice = document.form1.unitprice[].value; //var qty = document.form1.qty[].value; //amount = unitprice*qty; //document.form1.amount[].value = amount; var a= document.getElementById('unitprice[this]'); var b= document.getElementById('qty[this]'); var c = Math.ceil(a.value*b.value); alert(b); document.getElementById('amount[this]').value =c; } </script> <SCRIPT language="javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; for(var i=0; …

Member Avatar
+0 forum 0

Hi Friends I am using dynamic text box, i want to calculate the amount from value of rate in the text box and qty Pls help me how to solve it... [CODE]<?php include("config.php"); ?> <script type=text/javascript> function multiply(){ a = document.getElementById("rate").value; b = document.getElementById("qty").value; c = a*b; amt = alert(c); } </script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="" method="get" name="test"> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center">S.No</td> <td align="center">Item Name</td> <td align="center">Item Code</td> <td height="30" align="center">Rate</td> <td align="center">QTY</td> <td align="center">Amount</td> </tr> <tr> <?php …

Member Avatar
Member Avatar
+0 forum 5

HI Sorry for opening the thread, i have some issue please help me in solving the below one [B]Javascript[/B] [CODE]<script language="javascript"> function line(elem,amt,res_elem) { var qty=document.getElementById(elem).value; var tot_amt=qty*amt; //document.getElementById(res_elem).value = tot_amt; document.getElementById(res_elem).value = Math.round(tot_amt*100)/100; } </script>[/CODE] PHP [CODE] <?php $cate_code=$_GET['ct']; $civrform=$_GET['vrform']; $site=$_GET['site_name']; $desr="select * from site_rate where category_code='$cate_code' AND sitename='$site' order by item_code"; //echo $desr; $r=mysql_query($desr,$conn); $i=1; while($m=mysql_fetch_array($r)) { $item_code1=$m["item_code"]; $prate=$m["bgt_rate"]; $bdata="select sum(curr_qty), sum(curr_amount) from billingdata where item_code='$item_code1' AND site='$site' AND vrform='$civrform'"; //echo $bdata; $bdatar=mysql_query($bdata,$conn); $bdatam=mysql_fetch_array($bdatar); //$thisamt=($prate*$m['thisqty']); $pqty = $bdatam["sum(curr_qty)"]; $pamt = $bdatam["sum(curr_amount)"]; //$uqty = $pqty+$thisqty; ?> <td class="qty"><?php echo $i; ?></td> <td width="250" height="30" class="textinner"><textarea name="item_1" rows="1" readonly="readonly" class="textinner" …

Member Avatar
+0 forum 0

The End.