function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suji srinivasansuji srinivasan 

Unable to round off number for customfields in LWC

I would like to display month as a column in datatable based on created date & I need to roundoff number for customfields .
How to achieve this?


js:

import { LightningElement, wire, track } from 'lwc';
import getsalarylist from '@salesforce/apex/salarylist.getsalarylist';
const COLS = [
    { label: 'Month', fieldName: 'createddate', type: 'date', typeAttributes:{
        month: "long"
    } },

    { label: 'BasicAllowance', fieldName: 'BasicAllowance__c', type: 'Decimal' },
    { label: 'HouseRentAllowance', fieldName: 'HouseRentAllowance__c', type: 'Number' },
    { label: 'SpecialAllowance', fieldName: 'SpecialAllowance__c', type: 'Number',typeAttributes:{maximumFractionDigits:0} },
    { label: 'PF', fieldName: 'PF__c', type: 'Number' },.....................

Thanks in advance
SwethaSwetha (Salesforce Developers) 
HI Suji,
Have you been able to find an answer to this or still looking for an answer? Thanks