Changeset 43
- Timestamp:
- Mar 30, 2018, 10:15:10 PM (7 years ago)
- Location:
- rxutilex/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
rxutilex/trunk
-
Property svn:ignore
set to
*.[Dd][Ll][Ll]
*.[Ii][Nn][Ff]
*.[Mm][Aa][Pp]
*.[Oo][Bb][Jj]
*.[Zz][Ii][Pp]
-
Property svn:ignore
set to
-
rxutilex/trunk/rxutilex.c
r42 r43 102 102 103 103 static const char *PSZ_ZERO = "0"; 104 static const char *PSZ_ONE = "1";104 static const char *PSZ_ONE = "1"; 105 105 #endif 106 106 … … 113 113 #define US_PIPESTATUS_MAXZ 128 // ...of a pipe status string 114 114 #define US_DISKINFO_MAXZ 128 // ...of a disk information string 115 #define US_FRACSTR_MAXZ 21 // ...of a fraction string 115 116 116 117 #define UL_SSBUFSIZE 0xFFFF // Buffer size for the DosQuerySysState() data … … 1071 1072 * REXX ARGUMENTS: * 1072 1073 * 1. Number to be formatted. (REQUIRED) * 1073 * 2. Number of decimal places to use for floating point 1074 * values. Ignored for integer values.(DEFAULT: 2) *1074 * 2. Number of decimal places to use for floating point values * 1075 * (max 18). Ignored for integer values. (DEFAULT: 2) * 1075 1076 * * 1076 1077 * REXX RETURN VALUE: The formatted number, or "" on error. * … … 1087 1088 int iVal; // Input value as integer 1088 1089 #else 1089 LONGLONG llVal = 0; 1090 long double ldVal = 0, 1091 ldFrac = 0; 1092 PSZ p, 1093 a; 1094 BOOL bNeg = FALSE; 1095 CHAR achFrac[ 16 ]; 1096 int rc = 0; 1090 LONGLONG llVal = 0; // Input value as integer 1091 long double ldVal = 0, // Input value as floating point 1092 ldFrac = 0; // Input fraction portion 1093 PSZ p, // Pointer to fraction 1094 a; // Pointer to absolute value 1095 CHAR achFrac[ US_FRACSTR_MAXZ ]; // Fraction portion as string 1096 int rc = 0; 1097 1097 #endif 1098 1098 … … 1219 1219 { 1220 1220 // Use user-specified precision 1221 if ( iPrec > 18 ) iPrec = 18; 1221 1222 sprintf( achFrac, "%.*Lf", iPrec, ldFrac ); 1222 1223 } -
rxutilex/trunk/rxutilex.def
r42 r43 1 1 LIBRARY RXUTILEX INITINSTANCE TERMINSTANCE 2 2 DATA MULTIPLE NONSHARED 3 DESCRIPTION '@#Alex Taylor:0.1.6#@##1## 30 Mar 2018 1 4:26:03REINFORCE::::::@@Extended REXX Utility Functions'3 DESCRIPTION '@#Alex Taylor:0.1.6#@##1## 30 Mar 2018 16:11:36 REINFORCE::::::@@Extended REXX Utility Functions' 4 4 5 5 EXPORTS Sys2LoadFuncs
Note:
See TracChangeset
for help on using the changeset viewer.