* @param string $format the format to be used. Please refer to [ICU manual](http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details)
// * @param string $format the format to be used. Please refer to [ICU manual](http://www.icu-project.org/apiref/icu4c/classDecimalFormat.html#_details)
* for details on how to specify a format.
// * for details on how to specify a format.
* @param int $decimals
* @return string the formatted result.
* @return string the formatted result.
* @throws InvalidParamException if the input value is not numeric.
*/
*/
publicfunctionasScientific($value,$decimals=null)
publicfunctionasScientific($value,$decimals=0)
{
{
$format=null;
if(is_numeric($decimals)){
$decimals=intval($decimals);// number of digits after decimal