🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsIntegrated GPU is showing as Removable on Windows 11(14.09.2026 um 06:48 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(13.09.2026 um 09:30 Uhr)
🪟 Windows TippsIkea bringt neuen Bluetooth-Lautsprecher auf den Markt: Badkruka(14.09.2026 um 08:00 Uhr)
🪟 Windows TippsLinuxWelt Extra 3/2026 am Kiosk: Linux Grundlagen erklärt(14.09.2026 um 09:45 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsIntegrated GPU is showing as Removable on Windows 11(14.09.2026 um 06:48 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(13.09.2026 um 09:30 Uhr)
🪟 Windows TippsIkea bringt neuen Bluetooth-Lautsprecher auf den Markt: Badkruka(14.09.2026 um 08:00 Uhr)
🪟 Windows TippsLinuxWelt Extra 3/2026 am Kiosk: Linux Grundlagen erklärt(14.09.2026 um 09:45 Uhr)

🔧 Programmierung 🕛 vor 2 Jahren 3 Min Lesezeit
0

Math Object in JavaScript.!

↗ Quelle (dev.to)
🗣️ Stimme:

JavaScript Math obyekti raqamlar ustida matematik vazifalarni bajarishga imkon beradi va boshqa obyektlardan farq qilgan holda matematik obyektda konstruktor yo'q shuningdek matematik obyekt statik.!



Har qanday matematik xususiyat sintaksisi Math.property ko'rinishida bo'ladi.!



JavaScript Matematik xususiyatlari sifatida foydalanish mumkin bo'lgan 8 ta matematik konstantalarni taqdim etadi:

Math.E // Eyler raqamini qaytaradi.!

Math.PI // PIni qaytaradi.!

Math.SQRT2 // 2 ning kvadrat ildizini qaytaradi.!

Math.SQRT1_2 // 1/2 kvadrat ildizini qaytaradi.!

Math.LN2 // 2 ning natural logarifmini qaytaradi.!

Math.LN10 // 10 ning natural logarifmini qaytaradi.!

Math.LOG2E // E ning 2 ta logarifmini qaytaradi.!

Math.LOG10E //E ning 10 ta logarifmini qaytaradi.!



1.




CODE
let mathem=Math.E;
console.log(mathem);
//natija - 2.718281828459045






2.




CODE
let mathem=Math.PI;
console.log(mathem);
//natija - 3.141592653589793






3.




CODE
let mathem=Math.SQRT2;
console.log(mathem);
//natija - 1.4142135623730951






4.




CODE
let mathem=Math.SQRT1_2;
console.log(mathem);
//natija - 0.7071067811865476






5.




CODE
let mathem=Math.LN2;
console.log(mathem);
//natija - 0.6931471805599453






6.




CODE
let mathem=Math.LN10;
console.log(mathem);
//natija - 2.302585092994046






7.




CODE
let mathem=Math.LOG2E;
console.log(mathem);
//natija - 1.4426950408889634






8.




CODE
let mathem=Math.LOG10E;
console.log(mathem);
//natija 0.4342944819032518






JavaScriptda sonlarni butun songa yaxlitlashning 4 ta umumiy usuli mavjud.!



1.Math.round(x) - kiritilgan raqamni haqqoniy yaxlitlaydi.!




CODE
let result1=Math.round(12.1);
console.log(result1);
//natija - 12

let result2=Math.round(12.5);
console.log(result2);
//natija - 13

let result3=Math.round(12.9);
console.log(result3);
//natija - 13






2.Math.ciel(x)- kiritilgan raqamni katta tomonga yaxlitlaydi.!




CODE
let result1=Math.ceil(12.001);
console.log(result1);
//natija - 13

let result2=Math.ceil(12.5);
console.log(result2);
//natija - 13

let result3=Math.ceil(12.9);
console.log(result3);
//natija - 13








  1. Math.floor(x) - kiritilgan raqamni kichik tomonga yaxlitlaydi.!




CODE
let result1=Math.floor(12.001);
console.log(result1);
//natija - 12

let result2=Math.floor(12.5);
console.log(result2);
//natija - 12

let result3=Math.floor(12.9);
console.log(result3);
//natija - 12








  1. Math.trunc(x) - kiritilgan raqamni butun qismini qaytaradi.!




CODE
let result1=Math.trunc(0.9);
console.log(result1);
//natija - 0

let result2=Math.trunc(-12.5);
console.log(result2);
//natija - (-12)

let result3=Math.trunc(12.9);
console.log(result3);
//natija - 12






Math.sign(x)-




CODE
let result1=Math.sign(12.12);
console.log(result1);
//natija - 1

let result2=Math.sign(0);
console.log(result2);
//natija - 0

let result3=Math.sign(-9.4);
console.log(result3);
//natija - (-1)






Math.pow(x,y) -




CODE
let result1=Math.pow(3,4);
console.log(result1);
//natija - 81

let result2=Math.pow(25,2);
console.log(result2);
//natija - 625






Math.sqrt(x)-




CODE
let result1=Math.sqrt(25);
console.log(result1);
//natija - 5

let result2=Math.sqrt(1200);
console.log(result2);
//natija - 34.64101615137755






Math.abs(x)-




CODE
let result1=Math.abs(-2);
console.log(result1);
//natija - 2

let result2=Math.abs(2);
console.log(result2);
//natija - 2


Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Integrated GPU is showing as Removable on Windows 11
1 Quelle
Windows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Math Object in JavaScript.!

Thematisch verwandte Begriffe: Math, Object, JavaScript · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...