Skip to main content

Timeline for Multiply char with float

Current License: CC BY-SA 4.0

3 events
when toggle format what by license comment
Aug 14, 2022 at 17:19 comment added st2000 @spuder, please follow up to let us know if the above code suggestion works. I think C uses type int for intermediate values in which case the worst expected case (255*100) should not exceed the limits of a type int variable. Otherwise casting one of the variables to a type uint16_t would likely make the code more portable / less likely to break.
Aug 14, 2022 at 17:13 vote accept spuder
Aug 14, 2022 at 16:59 history answered st2000 CC BY-SA 4.0