H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 29, 2020 #1 Is their any reference for smart strings literal optional formatters .. example for 1.2 : B4X: Copy dim s as string = $"salary amount $1.2{30000}"$ ' salary amount 30,000
Is their any reference for smart strings literal optional formatters .. example for 1.2 : B4X: Copy dim s as string = $"salary amount $1.2{30000}"$ ' salary amount 30,000
toby Well-Known Member Licensed User Longtime User May 29, 2020 #2 HAH said: Is their any reference for smart strings literal optional formatters .. example for 1.2 : B4X: Copy dim s as string = $"salary amount $1.2{30000}"$ ' salary amount 30,000 Click to expand... Try https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/ Upvote 0
HAH said: Is their any reference for smart strings literal optional formatters .. example for 1.2 : B4X: Copy dim s as string = $"salary amount $1.2{30000}"$ ' salary amount 30,000 Click to expand... Try https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 30, 2020 #3 toby said: Try https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/ Click to expand... Another one, I mentioned it in the post Upvote 0
toby said: Try https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/ Click to expand... Another one, I mentioned it in the post
DonManfred Expert Licensed User Longtime User May 30, 2020 #4 HAH said: Another one, I mentioned it in the post Click to expand... But you read not carefully the Content of this post? Number Formatter The number formatter allows you to set the minimum number of integers and the maximum number of fractions digits. It is similar to NumberFormat keyword. The number formatter structure: MinIntegers.MaxFractions. MaxFractions component is optional. Click to expand... Other Numberformatters do not exist. You can for sure write your own FormatterSub and call it with B4X: Copy ${MyFormatterSub(par1,par2,par3,parx)} Upvote 0
HAH said: Another one, I mentioned it in the post Click to expand... But you read not carefully the Content of this post? Number Formatter The number formatter allows you to set the minimum number of integers and the maximum number of fractions digits. It is similar to NumberFormat keyword. The number formatter structure: MinIntegers.MaxFractions. MaxFractions component is optional. Click to expand... Other Numberformatters do not exist. You can for sure write your own FormatterSub and call it with B4X: Copy ${MyFormatterSub(par1,par2,par3,parx)}
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User May 30, 2020 #5 Number formatter is one thing, their are other many built-in like Time & so on .. So if there is a reference it will be better. Upvote 0
Number formatter is one thing, their are other many built-in like Time & so on .. So if there is a reference it will be better.
DonManfred Expert Licensed User Longtime User May 30, 2020 #6 HAH said: So if there is a reference it will be better. Click to expand... It is there! Check Numberformat documentation, For Date and Time check the resp. Erel said: Date - Equivalent to DateTime.Date: Click to expand... Erel said: Time - Equivalent to DateTime.Time: Click to expand... The documentation for all three is is the Documentation Upvote 0
HAH said: So if there is a reference it will be better. Click to expand... It is there! Check Numberformat documentation, For Date and Time check the resp. Erel said: Date - Equivalent to DateTime.Date: Click to expand... Erel said: Time - Equivalent to DateTime.Time: Click to expand... The documentation for all three is is the Documentation