- Timestamp:
- Apr 13, 2018, 3:14:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1903 r1904 13057 13057 fname = 'Nstr' 13058 13058 13059 if type(number) == type(1) or type(number) == type(long )):13059 if type(number) == type(1) or type(number) == type(long(1)): 13060 13060 newStr = '{:d}'.format(number) 13061 13061 elif type(number) == type(np.int16(1)) type(number) == type(np.int32(1)) or \ … … 13071 13071 return newStr 13072 13072 13073 print Nstr(np.float(1./3.))13074 13075 print Nstr(np.float32(1./3.))13076 13077 print Nstr(np.float64(1./3.))13078 13079 13073 #quit() 13080 13074
Note: See TracChangeset
for help on using the changeset viewer.