6 INTEGER AND FLOAT DATA TYPES
In Chapter 5, I detailed string and boolean data types. In this chapter, I’ll pivot to numeric data types, specifically the integer and floating-point data types, investigating them in great detail. Batch handles integers with ease, whether they be of the decimal, hexadecimal, or octal variants.
However, floating-point numbers are similar to booleans in that Batch doesn’t actually support them explicitly as a data type. But once again, that limitation affords the imaginative Batch coder with an opportunity to be inventive, and that’s exactly what we’ll do before this chapter is done.
An Octals Case Study
Get The Book of Batch Scripting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.