Hi @DTS Engineer ,
This issue intermittently happening in iOS 17.6.1 too. Could you please let me know if this fix is released.
Post
Replies
Boosts
Views
Activity
I Used SDK Valet to store keychain. Is anyone same situation ?
Okay. Thanks for your help.
Hello,
I would like to inquire about a specific function and whether there have been any modifications made to it in the iOS 18 beta developer version. I have tested this function on iOS versions 17, 16, 15, 14, 13, and 12, and it has been functioning properly.
The function in question involves converting a decimal number, such as 12000000/12, into a string. The expected result on iOS 17 and earlier versions is 1000000. However, when I use iOS 18, the result is 1. Example code :
import Foundation
var computedAmount: Decimal = 12000000.0
computedAmount = computedAmount/12
computedAmount = NSDecimalNumber(string: computedAmount.formattedAmountIgnoreFraction).decimalValue
print("value of computet amount \(computedAmount)")
extension Decimal {
var formattedAmountIgnoreFraction: String? {
let formatter = NumberFormatter()
formatter.numberStyle = .none
formatter.usesGroupingSeparator = true
formatter.generatesDecimalNumbers = true
formatter.minimumFractionDigits = 0
formatter.maximumFractionDigits = 0
return formatter.string(from: self as NSDecimalNumber)
}
}
I would appreciate any information or clarification regarding this change in behavior.
Thank you for your attention to this matter.
Oke thank u i will send the email