SyntaxFix
Write A Post
Hire A Developer
Questions
Try using
$string = "2968789218"; $float = (double)$string;