freeCodeCamp/guide/arabic/mathematics/converting-units-centimeter.../index.md

49 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Converting Units Centimeters to Meters
localeTitle: تحويل وحدات السنتيمتر إلى عدادات
---
## تحويل وحدات السنتيمتر إلى عدادات
Centi- (رمز c) هي بادئة وحدة في النظام المتري تدل على عامل واحد من مائة
المعنى هو Centimenter واحد من مائة من المتر. x cm = xm / 100
أمثلة 1 سم = 1 م / 100 = 0.01 م 10 سم = 10 م / 100 = 0.1 م 1.2 سم = 1.2 م / 100 = 0.012 م
لكل تعريف ، احد_ سنتيمتر احد_ هو _hundreth_ من المتر
في الصيغة التالية ، يتم تصنيف الوحدات مع أقواس \[\] حولها
`[cm] / 100 = [m]
`
إذا أدخلت القيمة التي لديك ، دعنا نقول 50 سم ، فسيتم حسابها على النحو التالي:
`50[cm] / 100 = 0.5[m]
`
نتيجة حساب إرجاع قيمة 0.5 متر ، فإن كمية متر 50 سنتيمتر هو.
### أمثلة
1. 1 سم = 0.01 م ( 1 100 )
2. 25 سم = 0.25 م ( 25 100 )
3. 200 سم = 2 م ( 200 100 )
### الترميز
`function convertCentimeterToMeter (cm) {
return ( cm / 100 );
}
// Set some example measurements
var lengthInCm = 300;
var lengthInM;
lengthInM = convertCentimeterToMeter(lengthInCm); // 3
`
### معلومات اكثر:
* [تحويل سم إلى م](https://www.convertunits.com/from/cm/to/m)
* [مقالة ويكيبيديا في Centi](https://en.wikipedia.org/wiki/Centi-)