added kerning support to record device
[swftools.git] / lib / as3 / ok / float.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4         function Main() {
5             /* test normal floats */
6             var x = .25;
7             if(x is Number) trace("ok 1/8");
8             if(x*4==1.0) trace("ok 2/8");
9             var y = -.25;
10             if(y is Number) trace("ok 3/8");
11             if(y*4==-1.0) trace("ok 4/8");
12
13             /* test hex floats */
14             var a = 0x.
15             var b = 0xa.
16             var c = 0x.4
17             var d = 0xa.a
18             if(a==0) trace("ok 5/8");
19             if(b==10.0) trace("ok 6/8");
20             if(c==0.25) trace("ok 7/8");
21             if(d==10.625) trace("ok 8/8");
22             trace("[exit]");
23         }
24     }
25 }