String format

จาก ThaiL10N

ข้ามไปที่: นำทาง, สืบค้น

string format ที่พบบ่อย ๆ สำหรับการแปล และความหมายมีดังนี้

String format
Type Output Example
%c Character a
%d or %i Signed decimal integer 392
%e Scientific notation (mantise/exponent) using e character 3.9265e2
%E Scientific notation (mantise/exponent) using E character 3.9265E2
%f Decimal floating point 392.65
%g Use shorter %e or %f 392.65
%G Use shorter %E or %f 392.65
%o Signed octal 610
%s String of characters sample
%u Unsigned decimal integer 7235
%x Unsigned hexadecimal integer 7fa
%X Unsigned hexadecimal integer (capital letters) 7FA
%p Address pointed by the argument B800:0000
%n Nothing printed. The argument must be a pointer to integer where the number of characters written so far will be stored.
รับข้อมูลจาก "http://l10n.opentle.org/String_format"
เครื่องมือส่วนตัว