Raised This Month: $ Target: $400
 0% 

Add some points on a Integer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 03-11-2010 , 20:50   Re: Add some points on a Integer
Reply With Quote #10

If you want a shorter stuff.
PHP Code:
    //Number must be the number that you want to pointed (integrer)
    
new str[15], strpointed[15], len
    num_to_str
(numberstr14)
    
len=strlen(str)
    new 
c
    
    
for (new i=0;i<len;i++) {
        if (
i!=&& ( (len-i)%3==0) ) {
            
add(strpointed14"."1)
            
c++
            
add(strpointed[i+c], 1str[i], 1)
        }
        else
            
add(strpointed[i+c], 1str[i], 1)
    }
//strpointed is the number with '.' 

Last edited by Mxnn; 03-12-2010 at 11:28.
Mxnn 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 19:49.


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