Does Npoi library support i18n for numbers and dates ? - internationalization

Suppose I have a number - 1000.65 . I want this to be downloaded in Italian number format as - 1.000,65
Dont want to convert it to string while formatting.

Related

how to decode an hexacidemal values to binary ones with springboot?

i am a new developper
i don't know how to decode hexacidemal values to binary ones with springboot, Is There a default functions That can help me or should i develop functions by myself
Also ,i want to compare the result with another one , should the 2 values be String ?
thank You
When you group 4 bits(1 bit is binary) it form a tuple which represent by one Hex decimal number.
There is no need of converting Hex to binary(in string format).
If you still want to do this you can refer:
https://www.geeksforgeeks.org/java-program-to-convert-hexadecimal-to-binary/

Format currency with dot instead of comma using i18n

We are using java.text.NumberFormat class to format the currency values using the method getInstance(Locale paramLocale). Our issue is when we pass es_CO(Columbia) language code it automatically formats it in value 123,00 instead of 123.00. Is there a way to format with dot instead of comma?
I am using Spring platform(hybris)
Please note due to business reasons it is not possible for me to change the locale.
You can use DecimalFormat to have your own format.
Look at this How can I format a String number to have commas and round?

Set cell to accept decimal in NPOI library using C#

I am using NPOI to generate an excel spreadsheet for my clients. My exchange rate is in decimal. However, I have to convert it to double because this is what the cellvalue accepts.
row.CreateCell(17).SetCellValue(Convert.ToDouble(document.ExchangeRate));
I do not want to do this. I want it to accept decimals and not do the conversion as when rounding some data is lost.
The way I overcome this is convert the decimals to String and then the excel representation will be in text.

Unpacking COMP-3 digit using Record Editor/Jrecord

I have created layout based on cobol copybook.
Layout snap-shot:
I tried to load data also selecting same layout, it gives me wrong result for some columns. I try using all binary numeric type.
CLASS-ORDER-EDGE
DIV-NO-EDG
OFFICE-NO-EDG
REG-AREA-NO-EDG
CITY-NO-EDG
COUNTY-NO-EDG
BILS-COUNT-EDG
REV-AMOUNT-EDG
USAGE-QTY-EDG
GAS-CCF-EDG
result snapshot
Input file can be find below attachment
enter link description here
or
https://drive.google.com/open?id=0B-whK3DXBRIGa0I0aE5SUHdMTDg
Expected output:
Related thread
Unpacking COMP-3 digit using Java
First Problem you have done an EBCDIC --> ascii conversion on the file !!!!
The EBCDIC --> ascii conversion will also try and convert binary fields as well as text.
For example:
Comp-3 value hex hex after Ascii conversion
400 x'400c' x'200c' x'40' is the ebcdic space character
it gets converted to the ascii
space character x'20'
You need to do binary transfer, keeping the file as ebcdic:
Check the file on the Mainframe if it has a RECFM=FB you can do a transfer
If the file is RECFM=VB make sure you transfer the RDW (Record Descriptor word) (or copy the VB file to a FB file on the mainframe).
Other points:
You will have to update RecordEditor/JRecord
The font will need to be ebcdic (cp037 for US ebcdic; for other lookup)
The FileStructure/FileOrganisation needs to change (Fixed length / VB)
Finally
BILS-Count-EDG is either 9 characters long or starts in column 85 (and is 8 bytes long).
You should include Xml in as text not copy a picture in.
In the RecordEditor if you Right click >>> Edit Record; it will show the fields as Value, Raw Text and Hex. That is useful for seeing what is going on
You do not seem to accept many answers; it is not relevant whether the answer solves your problem; it is whether the answer is correct answer for the question.

Tesseract [OCR] - only numbers and euro symbol

At the moment I'm using tesseract a.tif output nobatch digits to parse an image that contains only numbers.
I'm in the need of parsing an image that contains numbers and Euro symbol. How can I do that with tesseract?
Modify the file digits under tessdata\configs to include the € symbol.

Resources