Format specifier
دیاریکەری فۆرمات
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
A short code after a colon inside the { } of an . It says how to show a value: .2f means two digits after the decimal point, 4 means a width of four characters and > lines the text up on the right.
کۆدێکی کورتە دوای دوو خاڵ لەناو { }ـی کە دیاری دەکات چۆن پیشان بدرێت: .2f واتە دوو دوای خاڵی ، 4 واتە پانیی چوار ؛ >ـیش دەقەکە بەلای ڕاستدا ڕێک دەخات.
Exampleنموونە
Widths keep the columns of a multiplication table straight.
پانییەکان ستوونەکانی خشتەی لێکدان ڕێک ڕادەگرن.
for n in range(5, 8):
print(f"{n:2} x 3 = {n * 3:3}")
# 5 x 3 = 15
# 6 x 3 = 18
# 7 x 3 = 21Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
دیاریکەری فۆرماتەکە، دیاریکەرەکانی فۆرمات، دیاریکەرێکی فۆرمات
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built on the registry's formatting (فۆرمات); دیاریکەر = something that specifies. Proposed.