mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-05 07:44:05 +01:00
(Fixes issue 1695)
This commit is contained in:
@@ -73,7 +73,7 @@ class CJavaScript
|
||||
else if($value===INF)
|
||||
return 'Number.POSITIVE_INFINITY';
|
||||
else
|
||||
return "$value";
|
||||
return rtrim(sprintf('%.16F',$value),'0'); // locale-independent representation
|
||||
}
|
||||
else if(is_object($value))
|
||||
return self::encode(get_object_vars($value));
|
||||
|
||||
Reference in New Issue
Block a user