Add some points on a Integer
How i can do something like this on a integer:
165 -> 165 (rofl) 3450 -> 3.450 172834 -> 172.834 1938294029 -> 1.938.294.029 (being a string, obviusly) Thanks in advance. (: |
Re: Add some points on a Integer
sorry for offtop but what for?
|
Re: Add some points on a Integer
Code:
InsertCharacter( szInput[], iLoc, iChar, szOutput[], iLen )Code:
InsertCharacter( "12345", 2, '.', blah, charsmax(blah)); |
Re: Add some points on a Integer
Quote:
Quote:
|
Re: Add some points on a Integer
At which character index you want to insert the third parameter.
E.g.: 2 means insert third parameter after the second char of the string (index 2) |
Re: Add some points on a Integer
It works, but i don't need that...
I need if can be done automatically, something like this: PHP Code:
|
Re: Add some points on a Integer
Code:
InsertPointChars( num, szOutput[], iLen ) |
Re: Add some points on a Integer
Oh I see what you want.
You don't use periods for this, you use commas. Code:
Works for both integers and floats. Code:
Code:
|
Re: Add some points on a Integer
Oh damn, you rocks Exolent :crab:
I'll test later, because i am not on my pc :gyar: Thanks Emp` too, maybe i'll use your stock for other things (: |
Re: Add some points on a Integer
If you want a shorter stuff.
PHP Code:
|
| All times are GMT -4. The time now is 19:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.