0

I can not enter a large decimal number in Excel

 2 years ago
source link: https://www.codesd.com/item/i-can-not-enter-a-large-decimal-number-in-excel.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I can not enter a large decimal number in Excel

advertisements

I am using Python and I use this method to enter numbers in an Excel sheet:

file_loc = "C:/Users/mahmoud/Desktop/Book1.xlsx"
new_sheet = pyexcel.get_sheet(file_loc)
new_sheet.row += [2, 'Series2', 'Possible', 25.00000000000000004, 0]
new_sheet.save_as(file_loc)

My problem is that it doesn't enter 25.00000000000000004 in the Excel sheet but when I open it enters 25 instead. But when I decrease the number of decimal points a bit to 25.000004 it enters it normally as it is.

Is there a way I can enter 25.00000000000000004 in the Excel sheet as it is so that I can use it later?


Based on excel's specification, the number precision is limited to 15 digits. The number you listed has 18 digits of precision.
https://support.office.com/en-nz/article/Excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3

Related Articles

How to convert a very large decimal number into a factorial number system?

I want to convert decimal number to Factorial number system. I want to do this for finding nth Lexicographic permutation of array up to 100 elements eg. A[87]={1,2,3..,87} I am given index 'n' whose lexicographic permutation at that position I need t

how to check that this user can not enter more than one decimal point or point in the html web page

I have web page with input field i want that user can input number in that but number should not contain two decimals like 10.0.0 mean it can only enter .one time not two times any idea how we can fix this.Presuming input element el is already assign

Can not enter the Python entry widget

I've got an interesting problem with the tk Entry widget. If I run the following test code, from Tkinter import * root =Tk() def pfunc(self): print Input.get() f=Frame(root) f.pack() Input=Entry(f) #Input.bind("<Return>",pfunc) Input.pack(

Python Pandas to_pickle can not take off large images of data

I have a dataframe "DF" with with 500,000 rows. Here are the data types per column: ID int64 time datetime64[ns] data object each entry in the "data" column is an array with size = [5,500] When I try to save this dataframe using DF.to_

Silverlight: Can not Enter Russian Text in a TextBox

On my home PC using Google Chrome (28.0.1500.72m version) I can't enter non-English text into Silverlight application TextBox: I can switch keyboard and I see it is changed in the mini-tray, but when I press any key on the Keyboard I keep receiving E

can not enter data in dataoutputstream

i'm creating a program that reads from file then change it to an arraylist of item and send it to to a client. A client chooses an item by id and enter amount needed. then it gets updated in the server. the server runs multithreading. when another cl

Selenium can not find fields with type number

I'm having a problem getting Cucumber to find fields with the HTML5 type="number". I'm not a big fan of the way they look in the browser, but I have a few fields that need the number keyboard on mobile, and this seems to be the easiest way to ge

Why the garbage value can not act as a random number?

This question may not be language specific. Is it possible to create a true random number ? If not why random number generation has to go through some algorithm, why garbage values cannot act as random numbers.It can. Depending on your definition of

Bash: Can not enter if even the condition is true

I am building a script which will backup a WordPress database. I have created the function need for the MySQL dump: function db_backup { read -r -p "Dump the database? [Y/n]: " response if [[ $response =~ ^([yY][eE][sS] || [yY])$ ]] then mysqldu

Can not enter ssh in instance created in eucalyptus

I installed the eucalyptus faststart3.4.2 iso from here http://downloads.eucalyptus.com/software/faststart/ and then I installed cloud in a box. Then creating an instance m1.small I am trying to ssh into the instance created by its IP. The VM is runn

You can not enter more than two digits with the Enter Number from button

I am developing calculater , i use sender button tag value to get number from button.. user will not able to enter more than two digit value in textfield i.e. 34+22 , 23+22 like this he will able to enter, 234+234 like that he is not able to enter va

The file is too large I can not enter my php program

This question already has an answer here: How to read giant text file in PHP? [duplicate] 2 answers I'd like to get input from txt file but the file contain data 1.6 GB. So it crashed when I load the data into my variable how can I get it in my php p

How can I convert very large decimal numbers to binary in Java

For instance, How would I be able to convert 2^60 or 12345678901234567890123456789012345678901234567890 to binary? Basically, numbers that are too large to represent in Java. Edit: I will be making a class that will be able to represent number that a

Error in sample.int (m, k): can not take a larger sample than the population

First, let me say that I'm fairly new to Machine Learning, kmeans, and r, and this project is a means to learn more about this and also to present this data to our CIO so I can use it in the development of a new help desk system. I have a 60K line te

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK