Skip to content
  • This project
    • Loading...
  • Sign in

Jeff Balicki / FP_Canada

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • FP_Canada
  • wp-content
  • plugins
  • smart-slider-3
  • Nextend
  • Framework
  • Cast.php
  • Jeff Balicki's avatar
    ee · 820715be
    820715be
    Jeff Balicki committed 2022-01-19 16:14:36 -0500
Cast.php 277 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php


namespace Nextend\Framework;


class Cast {

    /**
     * @param $number
     *
     * @return string the JavaScript float representation of the string
     */
    public static function floatToString($number) {

        return json_encode(floatval($number));
    }
}