Ruby ã® sprintf ãã©ã¼ãããã¯åºæ¬çã« C è¨èªã® sprintf(3) ã®ãã®ã¨åãã§ãããã ããshort ã long ãªã©ã® C ç¹æã®åã«å¯¾ãã修飾åããªããã¨ã2é²æ°ã®æ示å(%b, %B)ãåå¨ãããã¨ãsprintf ã®ãã¹ã¦ã®æ¹è¨ããµãã¼ããã¦ããªããã¨(%': 3æ¡åºåã)ãªã©ã®éããããã¾ãã Ruby ã«ã¯æ´æ°ã®å¤§ããã«ä¸éããªãã®ã§ã%b, %B, %o, %x, %X ã«è² ã®æ°ãä¸ãã㨠(å·¦å´ã«ç¡éã«1ãç¶ãã¨ã¿ãªããã®ã§) ..f ã®ãããªè¡¨ç¤ºããã¾ãã絶対å¤ã«ç¬¦å·ãä»ããå½¢å¼ã§åºåããããã«ã¯ %+xã% x ã®ããã«æå®ãã¾ãã 以ä¸ã¯ sprintf ãã©ã¼ãããã®æ¸å¼ã§ãã[] ã§å²ã¾ããé¨åã¯çç¥å¯è½ã§ãããã¨ã示ãã¦ãã¾ãã %[nth$][ãã©ã°][å¹ ][.精度]æ示å %[<name>][ãã©ã°][å¹ ][.精度]æ示å `%'
{{#tags}}- {{label}}
{{/tags}}