China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-05 16:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about number conversion! View 710 Replies 3
Original Poster Posted 2007-08-30 11:58 ·  中国 上海 杨浦区 电信
初级用户
Credits 86
Posts 27
Joined 2005-09-25 13:58
20-year member
UID 42814
Status Offline
For example, with numbers like 009 010 011, how can they be converted to 9 10 11?
Floor 2 Posted 2007-08-30 12:29 ·  中国 香港 腾讯云
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Floor 3 Posted 2007-08-30 14:15 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
set /a num=100%num% % 100

The poster above seems to have an extra % in the middle.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 4 Posted 2007-08-30 16:24 ·  中国 香港 腾讯云
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Not extra; one % works, and %% also works.
Forum Jump: