Mercurial > projects > dstress
annotate run/float_22.d @ 564:e77e4444c170
partial metadata fix
author | thomask |
---|---|
date | Thu, 02 Jun 2005 15:42:31 +0000 |
parents | 58d40daf8407 |
children | eaf0a0d20b60 |
rev | line source |
---|---|
376 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
564 | 5 // @author@ Derek Parnell <derek@psych.ward> |
376 | 6 // @date@ 2005-04-02 |
7 // @uri@ news:5efpfwr0e1l5$.ks45nx0xz2zf$.dlg@40tude.net | |
8 | |
9 module dstress.run.float_22; | |
10 | |
11 int main(){ | |
12 float f = 0.0000195f; | |
13 assert(typeid(typeof(0.0000195f)) == typeid(float)); | |
377 | 14 assert(.5f + f * 1e6f == .5f + 0.0000195f * 1e6f); |
376 | 15 return 0; |
16 } |