Search notes:

SAS format: comma

data some_floats;

     format c_3_0 comma3.0; /* At most three characters, no decimal places         s*/
     format c_3_1 comma3.1; /* At most three characters, at most one decimal place  */
     format c_3_2 comma3.2; /* At most three characters, at most twe decimal places */
     
     c_3_0 =   1/3;  /* ->  0     */
     c_3_1 =   1/3;  /* ->  0.3   */    
     c_3_2 =   1/3;  /* ->   .33  */    

     output;

     c_3_0 =  10/3;  /* ->  3     */
     c_3_1 =  10/3;  /* ->  3.3   */
     c_3_2 =  10/3;  /* ->  3.3   */

     output;

     c_3_0 = 100/3;  /* -> 33     */
     c_3_1 = 100/3;  /* -> 33     */
     c_3_2 = 100/3;  /* -> 33     */

     output;

run;
Github repository about-SAS, path: /programming/formats-informats/comma.sas

See also

informats and formats

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1759337854, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/formats-informats/comma(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78