中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 16:01
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Question about number conversion!
Printable Version  708 / 3
Floor1 mwh79 Posted 2007-08-30 11:58
初级用户 Posts 27 Credits 86
For example, with numbers like 009 010 011, how can they be converted to 9 10 11?
Floor2 wudixin96 Posted 2007-08-30 12:29
银牌会员 Posts 931 Credits 1,928
Floor3 Climbing Posted 2007-08-30 14:15
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
set /a num=100%num% % 100

The poster above seems to have an extra % in the middle.
Floor4 wudixin96 Posted 2007-08-30 16:24
银牌会员 Posts 931 Credits 1,928
Not extra; one % works, and %% also works.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023