Use to remove the right-most {{{2}}} characters of a string {{{1}}}.
Use to remove the right-most {{{2}}} characters of a string {{{1}}}.
| Code | Result |
|---|---|
{{str crop |Example |3}}
|
Exam |
{{str crop |123.456|3}}
|
123. |
{{str crop |123.456|-3}}
|
12 |
{{str crop |123.456|4}}
|
123 |
{{str crop |123.456|-4}}
|
123 |
{{str crop |123.456|0}}
|
123.456 |
{{str crop |123.456|7}}
|
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.