Tag Archives: format

Format/convert decimal to hexadecimal (or other numeral system)

My problem was to convert some calculations from decimal to hexadecimal to be used in a canvas background color. Specifically, convert from CMYK, from a pantone list, to RGB and apply the result to a canvas. In a different post i will describe the convertion, might be useful for someone. Flex has a way of… Read More »

Number formatting/padding before and after the decimal

Before i came up with this solution, i had some trouble formatting and padding decimal numbers, specifically when i want to do it before and after the decimal mark. To top it all, i wanted the result signed (with a plus sign(+) or minus sign(-) depending on the value of the variable) Example: I want… Read More »