How to show only the first two digits with NSNumberFormatter?
<p>I have a number for an example 1329094. I want to get only the first two digits that I make see 13</p>

<p>I create <code>NSNumberFormatter</code> like </p>

<pre><code> func setReceivedChart(description: [String], value: [Double]) {
        var descriptionString: String!
        var formatterNumber: NSNumber!
        var chartDataEntryArray = [ChartDataEntry]()
        for item in 0..&lt;description.count {
            let chartEntry = ChartDataEntry(value: value[item], xIndex: item)
            chartDataEntryArray.append(chartEntry)
            descriptionString = description[item]
            formatterNumber = value[item]
        }
        let dataSet = LineChartDataSet(yVals: chartDataEntryArray, label: "")
        dataSet.drawCircleHoleEnabled = false
        dataSet.drawCirclesEnabled = true // change
        dataSet.drawCubicEnabled = true
        dataSet.drawFilledEnabled = true
        dataSet.circleRadius = 3.0 // for iphone
        dataSet.drawValuesEnabled = true

        print(descriptionString)


        let numberFormatter = NSNumberFormatter()
        numberFormatter.numberStyle = .NoStyle
       numberFormatter.usesSignificantDigits = true
       numberFormatter.maximumSignificantDigits = 2

        dataSet.valueFormatter = numberFormatter

        // set color 47 206 255
        dataSet.fillColor = UIColor(red: 47/255, green: 206/255, blue: 255/255, alpha: 1.0)
        let chartData = LineChartData(xVals: description, dataSet: dataSet)
        receivedChartView.data = chartData
    }
</code></pre>

<p>But I see the result 1300000</p>

<p><strong>UPDATE</strong>
I cannot because the data is required for the graphics, I measure them in bytes for the construction of a good schedule. If I initially transformed into different values such as megabytes and bytes, the 704 bytes will be more than 1.5 megabytes in the chart</p>