Raised This Month: $ Target: $400
 0% 

Error with "pointing" a string number


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 12-30-2009 , 10:12   Error with "pointing" a string number
Reply With Quote #1

I have a number, for example 1234. I want to show it like 1.234 (American people use 1,234)

I was trying with this
PHP Code:
    new str1[15]
    
num_to_str(numberstr114)
    new 
len strlen(str1)
    while(
len 3)
    {
        
len -= 3
        add
(str1len,".")
    } 
But that just produces random shit.

Last edited by 01101101; 12-30-2009 at 13:57.
01101101 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode