diff options
author | unknown <lenz@mysql.com> | 2004-08-11 13:11:59 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2004-08-11 13:11:59 +0200 |
commit | 5ee446d9d0337f7c35ad8cb2b90f0a6aeac20a3c (patch) | |
tree | 3544ad78b139cd5148c999c4d9d7d886a551a8cf /mysql-test/t/func_math.test | |
parent | 2dd7ab297eea71153794b44eb6b201256a271ba2 (diff) | |
download | mariadb-git-5ee446d9d0337f7c35ad8cb2b90f0a6aeac20a3c.tar.gz |
- fixed non-predictable floating point results in func_math by adding
format() around them (as suggested by serg)
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r-- | mysql-test/t/func_math.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index ca958253d14..e745c7738ac 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -15,7 +15,7 @@ select log10(100),log10(18),log10(-4),log10(0),log10(NULL); select pow(10,log10(10)),power(2,4); set @@rand_seed1=10000000,@@rand_seed2=1000000; select rand(999999),rand(); -select pi(),sin(pi()/2),cos(pi()/2),abs(tan(pi())),cot(1),asin(1),acos(0),atan(1); +select pi(),format(sin(pi()/2),6),format(cos(pi()/2),6),format(abs(tan(pi())),6),format(cot(1),6),format(asin(1),6),format(acos(0),6),format(atan(1),6); select degrees(pi()),radians(360); # |