Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 是否使用十进制数据透视表返回?_Angular_Ag Grid - Fatal编程技术网

Angular 是否使用十进制数据透视表返回?

Angular 是否使用十进制数据透视表返回?,angular,ag-grid,Angular,Ag Grid,Im使用带枢轴模式的ag栅格: <ag-grid-angular #agGrid [style.width.%]="100" [style.height.px]="height" id="pivotGrid" class="ag-theme-balham" [columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [pivotMode]="true" [rowData]="rowData" (gridReady)="

Im使用带枢轴模式的ag栅格:

<ag-grid-angular #agGrid [style.width.%]="100" [style.height.px]="height" id="pivotGrid" class="ag-theme-balham"
    [columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [pivotMode]="true" [rowData]="rowData"
    (gridReady)="onGridReady.emit($event)" [autoGroupColumnDef]="autoGroupColumnDef" [animateRows]="true"
    [pivotRowTotals]="pivotRowTotals" [gridOptions]="gridOptions" [groupDefaultExpanded]="groupDefaultExpanded">
</ag-grid-angular>

问题是当我得到例如5.65时,它只显示5.6。有什么建议吗?我怎样才能得到带小数的完整数字?

您能提供stackblitz吗?因为在我的例子中,它正确地给出了输出,而没有舍入小数……你能告诉我我的答案有帮助吗?或者你的问题解决了吗?
   {
        headerName: 'Amount',
        field: 'amount',
        aggFunc: 'sum',
        width: 105,
        cellStyle: { textAlign: 'right' }
      }