Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - MySQL. . . | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 454/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 11-22-04 01:14 AM Link | Quote
Oh... never did find that reference manual... Thanks all you guys for your help .
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 1744/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 11-22-04 01:18 AM Link | Quote
however, if there is something you still don't understand from the manual, then you can still ask
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 455/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 11-22-04 05:46 AM Link | Quote


Here's a question I have no idea even where to START with...

I successfully added a poll function, and I want to find the percent of each poll thingy . I divided the ammount of votes for each poll by the total votes, though my answers get really long sometimes, like 0.66666666666667. How would I limit the characters in a result like this? (so it would return something like 0.67 or 0.66)
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 2586/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 11-22-04 05:50 AM Link | Quote
Something like this would do:
Use the round() function (You should consider having your numbers * 100 ,to make it easier).
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 457/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 11-22-04 06:23 AM Link | Quote
ooo, thanks, that's exactly what I needed. What do you mean, having my numbers * 100? o_x
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 2588/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 11-22-04 06:27 AM Link | Quote
Multiply your numbers by 100 in order to have them in some kind of percentage before using the round() function (or else you'll get either 1 or 0 (or 100 and 0))
Xeolord

- B l u e s -
Power Metal > All
Level: 81

Posts: 677/3418
EXP: 4884196
For next: 108653

Since: 03-15-04
From: Yeah

Since last post: 15 hours
Last activity: 15 hours
Posted on 11-22-04 06:31 AM Link | Quote
What can you expect from "an idiot!"

Kidding WW, of course.

This answered some questions I had also, but I'm curious what's all this for? Your own board or something? Or just messing around?

Don't mind me asking.
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 458/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 11-22-04 06:34 AM Link | Quote
HOW DARE YOU ASK >(.

It's for an upcoming site of mine. "Rinternet". Just testing to see if most of this works. It's a place where I can review most of the programs I use all the time, and some horrible ones that I'm forced to use. Plus have random polls. And comments for the articles, recent news/reviews, umm... yeah


(edited by windwaker on 11-21-04 09:35 PM)
Xeolord

- B l u e s -
Power Metal > All
Level: 81

Posts: 680/3418
EXP: 4884196
For next: 108653

Since: 03-15-04
From: Yeah

Since last post: 15 hours
Last activity: 15 hours
Posted on 11-22-04 06:37 AM Link | Quote
Rinternet + Reviewing + Random Polls + Articles = Interesting.

Sounds different.
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 459/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 11-22-04 06:43 AM Link | Quote
I thought that so many people have/are coding forums, that I should try something different.
DarkSlaya
POOOOOOOOOOOORN!
Level: 88

Posts: 2591/4249
EXP: 6409254
For next: 241410

Since: 05-16-04
From: Montreal, Quebec, Canada

Since last post: 8 hours
Last activity: 5 hours
Posted on 11-22-04 06:45 AM Link | Quote
Originally posted by windwaker
I thought that so many people have/are coding forums


I,too, would've been one of these people if I didn't forget to
upload everything before my last HD format.

But yeah, seems like you'll be getting somewhere with your current work.
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - MySQL. . . | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.031 seconds.