Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | // Copyright 2009 the Sputnik authors. All rights reserved. |
michael@0 | 2 | // This code is governed by the BSD license found in the LICENSE file. |
michael@0 | 3 | |
michael@0 | 4 | /** |
michael@0 | 5 | * Finite nonzero values that are Normalised having the form s*m*2**e |
michael@0 | 6 | * where s is +1 or -1, m is a positive integer less than 2**53 but not |
michael@0 | 7 | * less than s**52 and e is an integer ranging from -1074 to 971 |
michael@0 | 8 | * |
michael@0 | 9 | * @path ch08/8.5/S8.5_A13_T2.js |
michael@0 | 10 | * @description Finite Non zero values where e is 971 |
michael@0 | 11 | */ |
michael@0 | 12 | |
michael@0 | 13 | //CHECK #1 |
michael@0 | 14 | if ((1*(Math.pow(2,52))*(Math.pow(2,971))) !== 8.98846567431158e+307){ |
michael@0 | 15 | $ERROR('#1: (1*(Math.pow(2,52))*(Math.pow(2,971))) === 8.98846567431158e+307. Actual: ' + ((1*(Math.pow(2,52))*(Math.pow(2,971))))); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | //CHECK #2 |
michael@0 | 19 | if ((1*((Math.pow(2,53))-1)*(Math.pow(2,971))) !== 1.7976931348623157e+308){ |
michael@0 | 20 | $ERROR('#2: (1*((Math.pow(2,53))-1)*(Math.pow(2,971))) === 1.7976931348623157e+308. Actual: ' + ((1*((Math.pow(2,53))-1)*(Math.pow(2,971))))); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | //CHECK #3 |
michael@0 | 24 | if ((-1*(Math.pow(2,52))*(Math.pow(2,971))) !== -8.98846567431158e+307){ |
michael@0 | 25 | $ERROR('#3: (-1*(Math.pow(2,52))*(Math.pow(2,971))) === -8.98846567431158e+307. Actual: ' + ((-1*(Math.pow(2,52))*(Math.pow(2,971))))); |
michael@0 | 26 | } |
michael@0 | 27 |