แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > FieldNumber > getPrecision
เมธอด FieldNumber.getPrecision()
แสดงผลความแม่นยำปัจจุบันของฟิลด์นี้ ความแม่นยำคือจำนวนที่ค่าของช่องมีการปัดเศษ ส่วนความแม่นยำ 0 หมายความว่าค่านั้นไม่ได้ปัดเศษ
ลายเซ็น:
getPrecision(): number;
การคืนสินค้า:
ตัวเลข
จำนวนที่ค่าของช่องนี้ปัดเศษ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-10 UTC
[null,null,["อัปเดตล่าสุด 2024-09-10 UTC"],[[["The `getPrecision()` method returns the current precision of a FieldNumber, indicating the level of rounding applied to its value."],["A precision of 0 signifies that the FieldNumber's value is not rounded."],["This method helps determine how the FieldNumber handles and displays numerical values with varying degrees of accuracy."]]],["The `getPrecision()` method, part of the `FieldNumber` class, retrieves the current precision of a field. This precision determines the rounding applied to the field's value. A return value of 0 indicates no rounding is performed. The method outputs a number representing the rounding value.\n"]]