Jump to content

need help with a function


dezkit

Recommended Posts

Hey guys I got this code:

	function SteamToCommunity( $SteamId ) {
	$Parts = Explode( ':', Str_Replace( 'STEAM_', '', $SteamId ) );

	return BcAdd( BcAdd( '76561197960265728', $Parts[ '1' ] ), BcMul( $Parts[ '2' ], '2' ) );
}

 

Whenever I try to use this function it always brings up trailing 0's after the interger, such as "76561197961308838.0000000000"

 

I only need 76561197961308838, my friend who has the same exact script, it doesn't do the trailing zero's, any help? thanks.

Link to comment
https://forums.phpfreaks.com/topic/202604-need-help-with-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.