Parse and Render
Type Detection
String cells are converted into numbers so quantities and prices can be formatted and aligned.
Program
CSV parsers start with strings. Browser table code often converts selected columns before formatting numeric output.
type_detection.html
<script>
const rows = [["item","qty","price"],["Cable","3","12.50"],["Hub","1","39.00"]];
const typed = rows.slice(1).map(row => ({
item: row[0],
qty: Number(row[1]),
price: Number(row[2])
}));
renderCurrencyTable(typed);
</script>
type conversion
Type conversion changes text cells into numbers, dates, or booleans.
formatting
Formatting controls how typed values appear in the rendered table.