Change %.20f to %e.
authorYi Sun <yi.sun@intel.com>
Wed, 19 Feb 2014 06:04:52 +0000 (14:04 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 21 Feb 2014 03:01:54 +0000 (11:01 +0800)
This can make the error information more readable.

Signed-off-by: Yi Sun <yi.sun@intel.com>
utests/utest_generator.py

index 626ac96..8d8eb3f 100644 (file)
@@ -6,7 +6,7 @@ FLT_MIN_NEGA='-0x1.fffffep127f'
 FLT_MIN_POSI='0x1.0p-126f'
 FLT_MAX_NEGA='-0x1.0p-126f'
 
-paraTypeList={'float':'%.20f','int':'%d','double':'%lf','uint':'%d','string':'%s'}
+paraTypeList={'float':'%e','int':'%d','double':'%lf','uint':'%d','string':'%s'}
 
 
 def ulpUnit(ulpSize):