Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
amounts
- Page 1
Re: How would we poison AI web crawls?
Hardware and Software
Information Security
2 Months Ago
by Reverend Jim
… hasn't collapsed under the digital weight of the massive
amounts
of data uploaded daily just to Youtube.
Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’
Community Center
1 Month Ago
by rproffitt
UPDATE: Feb 4, 2025 — Google on Tuesday updated its ethical guidelines around artificial intelligence, removing commitments not to apply the technology to weapons or surveillance.
mysql- storing large dollar amounts
Programming
Databases
14 Years Ago
by fuston05
Having trouble storing dollar
amounts
in the thousands due to the "," that gets inserted once the number becomes 1, 000.00. Any advise?
Re: mysql- storing large dollar amounts
Programming
Databases
14 Years Ago
by smantscheff
Filter the "." before you insert it. You can replace the period by applying replace(): [CODE]INSERT INTO mytable myvalue VALUES (replace('1.000','.','')); [/CODE]
Re: mysql- storing large dollar amounts
Programming
Databases
14 Years Ago
by fuston05
I appreciate your advise. However this turned out to be a beginner's mistake. I was using number_format() "BEFORE" my insert statement. That was throwing the "," in there. I just took off the number_format(), and used decimal(10,2) and it works perfectly. Sorry. haha lesson learned :)
My Code(Check it please , Give me tips and tricks)
Programming
Software Development
13 Years Ago
by chiiqui
…; i++) { int Position = rgen.nextInt(
amounts
.length); double temp =
amounts
[i];
amounts
[i] =
amounts
[Position];
amounts
[Position] = temp; } } public void …} else { } briefcase[i] = new Briefcase(); double value =
amounts
[i]; briefcase[i].setAmount(value); briefcase[i].setFace(i); } } public…
Need help to create this program
Programming
7 Years Ago
by Khushali_1
… to a file and the console the number of sales
amounts
, the lowest amount, the highest amount, and a complete list… of the
amounts
in order from lowest to highest. Sample output shown on… less. The program must keep track of the number of
amounts
read in from the file, and stop at the sentinel…
To create a program that stores value from a file in the array
Programming
Software Development
7 Years Ago
by Khushali_1
… file and the console the number of sales
amounts
, the lowest amount, the highest amount, and… a complete list of the
amounts
in order from lowest to highest. Sample output…program must keep track of the number of
amounts
read in from the file, and stop …data set and is not one of the
amounts
. The file location must be the project …
HELP!!
Programming
Software Development
14 Years Ago
by ButterFly21
…return amt * (changeInServings); } //out the ingredient, and
amounts
//35, 12.2c, 12.2ml /* Outputs a single …numbers are displayed with a fixed decimal place. * *
Amounts
have their units placed after them * c for cups *…(val)); return val; } //5 ingredients //track total
amounts
/* * Converts a recipe in terms of serving size and…
Check to see if I followed the comments correctly
Programming
Software Development
14 Years Ago
by ButterFly21
… value. return amt * (changeInServings); } //out the ingredient, and
amounts
//35, 12.2c, 12.2ml /* Outputs a single ingredient and…, val, convertCupstoMilliliter(val)); return val; } //5 ingredients //track total
amounts
/* * Converts a recipe in terms of serving size and units…
Need Some Help
Programming
Software Development
17 Years Ago
by deitystrife
…fractions of one cent! You can't pay with negative
amounts
! Please type in your payment "); scanf("%… of one cent! You can't pay with negative
amounts
! Please type in your payment "); scanf("%… of one cent! You can't pay with negative
amounts
! Please type in your payment "); scanf("%…
OOP - create class help
Programming
Computer Science
17 Years Ago
by chapelhoffer
… double balance ; char accountNumber ; bool accountType ; double
amountS
; public: void defaultCTOR(){ balance = 0 ; accountType …, BankAccount amount){ balance = balance - amount.
amountS
;} void credit(double balance,double amount){ balance…
Void Function - string parameters
Programming
Software Development
15 Years Ago
by Vani3863
… 5b: Two value parameters and two reference parameters The
amounts
are calculated as follows: R80 for one fruit cake and… Now write a void function calculateAmounts that calculates two
amounts
– one amount that is due if the client …, there are two reference parameters, namely the two
amounts
that should be calculated and be available to the main…
strtok
Programming
Software Development
15 Years Ago
by leeba
…void main () { /* defines maximum list of dollar
amounts
*/ #define MAXLINE 100 float rate; float *dollar[MAXLINE]={…amp;rate); printf("Please input dollar
amounts
to calculate into Shekels. Return will …end the list."); /* reads the list of dollar
amounts
*/ while (spaceCount<=MAXLINE) { if ((c=getchar())=='…
Help with Java Mortgage Calculator
Programming
Software Development
14 Years Ago
by djbhoco
… PrinAmt3; //Assign 3 different principal
amounts
double Payment1, Payment2, Payment3; //Assign 3 different payment
amounts
double Int1, Int2, Int3; //Assign… moPrin1, moPrin2, moPrin3; //Assign 3 different monthly principal payment
amounts
double LoanBal = 0; PrinAmt1 = principal; PrinAmt2 = principal; PrinAmt3 = principal…
Re: Help with Java Mortgage Calculator
Programming
Software Development
14 Years Ago
by java_programmer
… PrinAmt3; //Assign 3 different principal
amounts
double Payment1, Payment2, Payment3; //Assign 3 different payment
amounts
double Int1, Int2, Int3; //Assign… moPrin1, moPrin2, moPrin3; //Assign 3 different monthly principal payment
amounts
double LoanBal = 0; PrinAmt1 = principal; PrinAmt2 = principal; PrinAmt3 = principal…
Can this code of mine be more efficient?
Programming
Software Development
13 Years Ago
by chiiqui
…<briefcase.length ; i++){ briefcase[i] = new Briefcase(); double value =
amounts
[i]; briefcase[i].setAmount(value); briefcase[i].setFace(i); }//initialization… and insertion of
amounts
in the briefcase System.out.println("\tPlease Select from…
Re: Can this code of mine be more efficient?
Programming
Software Development
13 Years Ago
by chiiqui
…= new Briefcase[27]; //an array of briefcases double
amounts
[] = {0,0.01,0.5,1,5,10… i++){ briefcase[i] = new Briefcase(); double value =
amounts
[i]; briefcase[i].setAmount(value); briefcase[i].setFace(i); }//…initialization and insertion of
amounts
in the briefcase System.out.println("\tPlease …
Re: Generating Numbers from 0.0 to 999 999
Programming
Software Development
13 Years Ago
by chiiqui
[CODE]public void Shuffle(){ Random rgen = new Random(); for (int i=0; i >
amounts
.length; i++) { int randomPosition = rgen.nextInt(
amounts
.length); double temp =
amounts
[i];
amounts
[i] =
amounts
[randomPosition];
amounts
[randomPosition] = temp; } }[/CODE] how aobut this?
Re: Generating Numbers from 0.0 to 999 999
Programming
Software Development
13 Years Ago
by chiiqui
… i = 0; i <
amounts
.length - 1; i++) { int randomPosition = rgen.nextInt(
amounts
.length); double temp =
amounts
[i];
amounts
[i] =
amounts
[randomPosition];
amounts
[randomPosition] = temp; } }[/CODE…
Re: Generating Numbers from 0.0 to 999 999
Programming
Software Development
13 Years Ago
by chiiqui
…; i--) { int r= rand.nextInt(i+1); double temp =
amounts
[i];
amounts
[i] =
amounts
[r];
amounts
[r] = temp; } }[/CODE][/QUOTE] what does this part… specifically do? [CODE]
amounts
[i] =
amounts
[r];[/CODE] does it switch the indexes? or the values…
Re: Generating Numbers from 0.0 to 999 999
Programming
Software Development
13 Years Ago
by JamesCherrill
…chiiqui;1643102]what does this part specifically do? [CODE]
amounts
[i] =
amounts
[r];[/CODE] does it switch the indexes? or …It does exactly the same as your [CODE]
amounts
[i] =
amounts
[randomPosition];[/CODE] It takes the value is stored …in the array element
amounts
[randomPosition] and copies that value into the array …
if else statement
Programming
Web Development
13 Years Ago
by wwefriend
… * invoice_tax Sum of global invoice tax
amounts
* invoice_shipping invoice_shipping * invoice_discount invoice_discount * invoice_paid… * invoice_tax Sum of global invoice tax
amounts
* invoice_shipping invoice_shipping * invoice_discount invoice_discount * …
PSEUDOCODE FOR JAVA HELP NEEDED PLEASE!!
Programming
Software Development
11 Years Ago
by shit3432
…player1 < 0) THEN PRINT “Error! Price
amounts
must be more than $0” ENDIF UNTIL player1 … player2 = player1) THEN PRINT “Error! Price
amounts
must be more than $0 and not same …, player2, player3) THEN PRINT “Error! Price
amounts
must be more than $0 and not same as…
how to store a data from a form in multi dimensional array
Programming
Web Development
7 Years Ago
by Dilawar_1
…('id'=> $id,'am'=>$am) ); $heads = array(); $
amounts
= array(); $i = 0; foreach($arr as $sub) { $key… { $heads["'" . $i . "'"] = $sub['id']; $
amounts
["'" . $i . "'"] = $sub['am']; $i++; } …
Re: Generating Numbers from 0.0 to 999 999
Programming
Software Development
13 Years Ago
by chiiqui
… 3 does? - sorry it doesn't do that. and
amounts
[i] =
amounts
[r]; doesn't exactly swap the two values, although it… Random(26); int i = 0; int r = 0; for (i =
amounts
.length-1; i>=1; i--) r = rand.nextInt(); r…
Accumulating Counts and taking Averages
Programming
Software Development
17 Years Ago
by leroi green
… a program I'm working with that takes in rainfall
amounts
and then shows the total rainfall amount and then gives… procedure to calculate the total and average ' rainfall
amounts
, then displays both
amounts
Static rainCounter As Integer Static rainAccum As Decimal Dim…
Lost - Pointers, Structs, Functions
Programming
Software Development
16 Years Ago
by StainlessSteelR
… report file to display the division name, four quarterly sales
amounts
and the total sales for the year for that division… function named addDivision to add this divisions sales
amounts
to the corporate sales
amounts
. Pass the pointer of both the division and…
code error
Programming
Software Development
14 Years Ago
by aukeebler
…int choice = 0; double rainfall[12] = {0.0}; //get rainfall
amounts
for (int x = 0; x < 12; x +=1) {…lt;< endl; cout << "1 Display monthly
amounts
" << endl; cout << "2 …***** void displayMonthly(double rain[]) { cout << "Monthly rainfall
amounts
:" << endl; for (int x = 0; x …
Re: code error
Programming
Software Development
14 Years Ago
by PatrixCR
…int choice = 0; double rainfall[12] = {0.0}; //get rainfall
amounts
for (int x = 0; x < 12; x +=1) {…lt;< endl; cout << "1 Display monthly
amounts
" << endl; cout << "2… void displayMonthly(double rain[]) { cout << "Monthly rainfall
amounts
:" << endl; for (int x = 0; x …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC