Skip to content

Profectus / features/resources/resource / displayResource

Function: displayResource() ​

displayResource(resource, overrideAmount?): string

Utility for displaying a resource with the correct precision.

Parameters ​

resource ​

Resource

overrideAmount? ​

DecimalSource

Returns ​

string

Defined in ​

profectus/src/features/resources/resource.ts:152