Setpricision funksiyasi haqida
Munisa Kuranbekova
Posted on October 27, 2024
Setprecision - ushbu funksiya kasr sonlarni nuqtadan keyin x ta raqam aniqligida yaxlitlaydi.
!!! Ushbu funksiya aytilgan aniqlikda yaxlitlaydi. Undan keyingi raqamlarni shunchaki chop etmaydi.
Setpricision funksiyasidan foydalanish uchun bizga <iomanip>
kutubxonasi kerak.
Cpp - odatda float ya'ni kasr sonlarni yaxlitlagandan keyin ilmiy ko'rinishda ko'rsatadi.
Ilmiy ko'rinishni oldini olish uchun fixed
kalit so'zi ishlatiladi. Bu degani nuqta o'z o'rnida qolishi kerak degani.
💖 💪 🙅 🚩
Munisa Kuranbekova
Posted on October 27, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev A Tale of WeakMap and WeakSet in JavaScript: The Guardians of Forgotten Secrets
November 29, 2024
productivity ✍️🤖 Learn How to Improve Your Prompts and Get More Detailed and Relevant Responses
November 29, 2024