|
|
|
|
Joined: May 2000
Posts: 243
Member
|
|
Member
Joined: May 2000
Posts: 243 |
Im having problems turning a decimal number: 0.8 into: %80 Should I use sprintf? Because that is what I was tring but it wasn't working? Mark, Atom? Have any suggestions? ------------------ My Freeware Board
|
|
|
|
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
LOL, I too have had those moments where trying to do something monumentally tricky and cute, that I forget there is an incredibly simple solution: ![[Linked Image]](https://ubbdev.com/ubb/smilies//smile.gif) --mark
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
|
|
Joined: May 2000
Posts: 243
Member
|
|
Member
Joined: May 2000
Posts: 243 |
Me feels stupid hehe ![[Linked Image]](https://ubbdev.com/ubb/smilies//wink.gif) ------------------ My Freeware Board
|
|
|
|
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
Heh, the ole Brain Farts. Gotta love em. Especially when they cause third grade math to bite you in the ass, in public! ![[Linked Image]](https://ubbdev.com/ubb/smilies//biggrin.gif) --mark
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
|
|
Joined: Aug 2000
Posts: 469
Member
|
|
Member
Joined: Aug 2000
Posts: 469 |
hmmm we just did something like that in 'fundmanetals of programming'. Kindaaaaaa...
I don't like true basic, it's not as fun as perl.
------------------ -david According to the book Buzzed, I am literally addicted to caffiene and display all but a couple of the signs of heroin abuse.
|
|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
Was wondering why in the hell you would need sprintf for decmimals >:0)
------------------ Da Wannabe Cannuck
|
|
|
|
|
Joined: Sep 2000
Posts: 18
Junior Member
|
|
Junior Member
Joined: Sep 2000
Posts: 18 |
Sometimes you'll use sprintf on decimal to strictly control the number of digits; say, for columnar presentation... ------------------ etLux CodeBrain.com Free Java
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,825
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 7875
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
|
|
|
|
|
|