{"id":13274,"date":"2021-12-12T04:14:44","date_gmt":"2021-12-12T04:14:44","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=13274"},"modified":"2021-12-12T04:15:02","modified_gmt":"2021-12-12T04:15:02","slug":"solved-is-it-possible-to-use-decimal-calculations-in-cmd","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/is-it-posible-to-use-decimal-calculations-in-cmd\/29214.html","title":{"rendered":"Solved Is It Possible To Use Decimal Calculations In Cmd?"},"content":{"rendered":"<p>hay my friends. \ud83d\ude09<\/p>\n<p>i am just woundering, can anyone tell me is there a way to use decimal calculations in cmd (batch scripts) language?<\/p>\n<p>i am writing my own program in cmd programming language, and i want to do a percent calculations (for progress bar). but cmd allways as a resoult of dividing returns full number. and i need a decimal number to be able to calculate percentage.<\/p>\n<p>is there any dos utility which can be used as a patch for ms-dos 8 (windows xp cmd.exe over ntvdm.exe (or even better 32 bit dos utility without ntvdm.exe)) which can do decimal calculations?<br \/>\nif there is, i will install it in dos, and use it in cmd as a new command.<br \/>\nbecause cmd does not support calculations with decimal numbers (just full numbers).<\/p>\n<p>thank you.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":17},"question-category":[55],"question_tags":[],"class_list":["post-13274","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/13274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=13274"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=13274"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=13274"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=13274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}