FIXED

จัดรูปแบบตัวเลขด้วยจำนวนคงที่ของตำแหน่งทศนิยม

ตัวอย่างการใช้งาน

FIXED(3.141592653,2)

FIXED(966364281,4,1)

รูปแบบคำสั่ง

FIXED(number, [number_of_places], [suppress_separator])

  • number - ตัวเลขที่ต้องจัดรูปแบบ

  • number_of_places - [ ไม่บังคับ - จำนวนตำแหน่งทศนิยมที่จะแสดงในผลลัพธ์

    • หาก number จำนวนของเลขนัยสำคัญน้อยกว่า number_of_places ระบบจะเติมเลขศูนย์ แต่หากมีจำนวนของเลขนัยสำคัญมากกว่า number_of_places ระบบจะปัดเศษ number เป็น number_of_places ที่ถูกต้อง แทนที่จะตัดทอน
  • suppress_separator - [ ไม่บังคับ - 0 โดยค่าเริ่มต้น ] - ดูว่าจะไม่แสดงตัวแบ่งหลักพันที่ใช้ในบางภาษาหรือไม่ (เช่น 1,000 กลายเป็น 1000) ตัวแบ่งจะคงอยู่หากค่าดังกล่าวเป็น 0 หรือได้รับการละเว้น หรือไม่มี

ตัวอย่าง

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

ค้นหา
ล้างการค้นหา
ปิดการค้นหา
เมนูหลัก
16634625943423923165
true
ค้นหาศูนย์ช่วยเหลือ
true
true
true
true
true
35
false
false