KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Setting type for a number (can I round it to an int?) #2178

Open Richb201 opened this topic on on Jul 1, 2021 - 1 comments

Richb201 commented on Jul 1, 2021

Is percent an allowed type? Can I round it to zero decimals? is 78.67 => 79 If not, can I truncate it?

"percentage"=>array(
            "type"=>"percent",
            "label"=>"percent valid",
            "prefix"=>"%"
        )
Sebastian Morales commented on Jul 2, 2021

Just set its meta "type" => "number" and "decimals" => 0, "prefix" => "%". Let us know if it matches your expectation. Rgds,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

None