2,922 questions
-1 votes
3 answers
90 views
SwiftUI TextField with number format ignores environment locale
I'm facing the issue that SwiftUI's TextField with a number format seems to ignore the locale set by the environment modifier. struct MyView: View { @State var number: Decimal = 1.1 var ...
-3 votes
1 answer
75 views
Converting a 10-digit numerical to a decimal °C value [closed]
I am reading temperature values from a PLC. The values are stored in Double_Word (4 bytes) in the form of "1102393648". Always 10 digits, and always starting with 110. They should be around ...
-1 votes
2 answers
63 views
How to get a space for a negative number in format() function [closed]
Use " " (a space) to insert a space before positive numbers and a minus sign before negative numbers: txt = "The temperature is between{: } and{: } degrees celsius." print(txt....
2 votes
2 answers
122 views
Export-Excel from PowerShell not displaying '=' in cells
I'm using the PowerShell ImportExcel module to export XML data into an Excel file. I've currently got a working script that converts the data from XML to an array of PowerShellCustomObjects, and then ...
3 votes
1 answer
377 views
Export-Excel from PowerShell doesnt format dates properly
I've got some data in a CSV file that I'm trying to convert to an XLSX file. I've been trying this using the Import-Excel PS module. Here is an extract of what the CSV file looks like: AMOUNT_BOUGHT,...
2 votes
1 answer
68 views
Moving Group-Element to numeric-edited field vs moving alphanumeric field to numeric field
When trying to make a Date readable we sometimes use numeric-edited field,e.g. 01 Date-Readable pic 99.99.99. Decimal-Point is comma is in effect. Although this solution is not how the decimal point ...
0 votes
3 answers
126 views
Format number to at most n digits in python
I know I can use format in order to format a number to whatever format. What I want is to format to at most n digts. This can be achieved using the g-format-specifier. But there's one caveat here. ...
2 votes
2 answers
124 views
Why is "1,2,3,4" coerced as an integer 1234?
While implementing a PSTypeConverter for my class/type, I stumbled on a curious bit of Powershell magic (puzzle?) having to do with string-to-number conversion: "1,2,3,4" -as [int] ...
-2 votes
2 answers
88 views
How to print a list of float64 with justified decimal point in Go
I would like to print a slice of float64 values line by line having all decimal points at the same position in each line. I could print the integer part right justified, the decimal point and then the ...
1 vote
0 answers
99 views
How to localize D3 SI suffixes in Apache Superset number formatting (e.g., k, M, B → тыс., млн, млрд)?
I've been trying to localize default number formatting in Apache Superset charts, specifically the SI suffixes used in formats like .2s. Out of the box, Superset uses D3 defaults — k, M, B — but I ...
0 votes
0 answers
39 views
Show number with different formatting
I am using ClosedXML to create an Excel file. The issue is I am having amount value in string variable and I want to display it with comma separate number format (like Indian currency culture). Having ...
2 votes
1 answer
73 views
Can't print out 8-bit values of registers
I'm trying to print out current year (CX), month (DH), day (DL) and day of the week (AL) from system timer. Year stored in CX is printed out correctly. I tried to printout DH, DL and AL with ...
1 vote
1 answer
76 views
How to Implement Localisation in Flutter for Numbers?
Let's consider in Flutter we are showing the number in language English. When the user changes the language to Hindi or any other Indian language, the number should be displayed as per the language, ...
1 vote
1 answer
759 views
How to only allow numbers (while typing) in a Numeric UpDown?
I'm trying to come up with a better approach for my other problem: Avalonia: Get Numeric UpDown to parse the text on lost focus In short: I'd like a TextBox that ignores non-numeric characters while ...
0 votes
1 answer
157 views
Avalonia: Get Numeric UpDown to parse the text on lost focus
I have a numeric up down like this: <NumericUpDown Value="{Binding Samples}" ShowButtonSpinner="False" ParsingNumberStyle="Integer"/> Then I use this on the ...