Number with more than 10 decimal places display as 0 in report
We have a number stored on a table as this long with several decimal values.
2440.159999999999854480847716331481933593
On one PC it display in a Crystal report as 0 and to another user it displays at the 2440. The report formats the display field with 0 decimal places.
Is there a max precision setting at the database level that is causing this?
It seems I can add an SQL express as follows:
Round ("ORDER_RELEASE"."TOTAL_WEIGHT", 2) to resolve the issue but cannot determine could be causing the differences in display among two different client PCs running the same report.
Hello,
CR was built using C++ and therefore the max number is 15 digits plus 1 for the sign of the number.
Cause could be different runtime of MS C++ but hard to say for sure. I any event the only work around is to use Store Procedure and break the field into 2 parts. The in CR add a text object and drop the fields into it next to each other. For doing any calculations on them you'll also have to do that in the SP or handle each field manually.
Thank you
Don
Similar Messages
-
How do you get the integer of a number with more than 10 digits
I can't seem to be able to get the integer of a number with more than 10 digits.
ex:
integer(12345678901.3) returns -539222987 when it should really return 12345678901
Thanks for the help
(I'm on director 11 at the moment)You can write a Parent script to represent Big Integers. I wrote some code to get you started. It consist of two classes - "BigInt" and "Digit". At this point you can only add two "BigInts" and print out the value with a toString() function. Note that you pass a String to the "BigInt" constructor.
In the message window you could enter something like:
x = script("BigInt").new("999999999999")
y = script("BigInt").new("100000000000000000004")
z = x.add(y)
put z.toString()
And the output window will show:
-- "100000001000000000003"
Here are the two Parent scripts / Classes
-- Digit
property val
property next
on new me, anInt
val = anInt
next = 0
return me
end new
-- BigInt
property Num
property StringRep
on new me, aString
Num = script("Digit").new(Integer(aString.char[aString.length]))
curNum = Num
repeat with pos = aString.length - 1 down to 1
curNum.next = script("Digit").new(Integer(aString.char[pos]))
curNum = curNum.next
end repeat
return me
end new
on add me , Num2
curNum = Num
curNum2 = Num2.Num
result = curNum.val + curNum2.val
if result > 9 then
carry = 1
else
carry = 0
end if
result = result mod 10
sum = script("Digit").new(result)
curSum = sum
curNum = curNum.next
curNum2 = curNum2.next
repeat while curNum.ObjectP AND curNum2.ObjectP
result = curNum.val + curNum2.val + carry
if result > 9 then
carry = 1
else
carry = 0
end if
result = result mod 10
curSum.next = script("Digit").new(result)
curSum = curSum.next
curNum = curNum.next
curNum2 = curNum2.next
end repeat
repeat while curNum.ObjectP
result = curNum.val + carry
if result > 9 then
carry = 1
else
carry = 0
end if
result = result mod 10
curSum.next = script("Digit").new(result)
curSum = curSum.next
curNum = curNum.next
end repeat
repeat while curNum2.ObjectP
result = curNum2.val + carry
if result > 9 then
carry = 1
else
carry = 0
end if
result = result mod 10
curSum.next = script("Digit").new(result)
curSum = curSum.next
curNum2 = curNum2.next
end repeat
StringRep = ""
me.makeString(sum)
return me.script.new(StringRep)
end add
on toString me
StringRep = ""
me.makeString(Num)
return StringRep
end toString
on makeString me, digit
if not digit then
return
end if
me.makeString(digit.next)
put String(digit.val) after StringRep
end makeString -
Using prefix number with more than one contact - 2...
Hi,
New User here.
By searching the forum I found out how to program in a pause so that I could prefix all my 'out-of-country' contacts with a cheap service provider. (Why isn't this key in the manual, or shown on the keyboard?)
When I save the number for Contact 2 I am told that the number is already in use for Contact 1, but of course, it isn't. It's only the number as far as the pause that's the same. And the call is refused.
So, as I have lots of these numbers to pre-program and it means the difference between a 15 euro call and 0.50 euro call, I want to do this!
Anybody out there know the 'work 'round', or why this is happening?
Thanks in advanceNot sure how this is going to help me. Even if there are two numbers available, surely, once i choose one to dial, the other is no longer on the screen.
I know how to enter the prefix no, pause for the service to reply, and then dial the out of country number. So the number looks like 12345p00448769876543. That part is easy.
I can even force it to save the second number with that prefix.
Getting the phone to use the second number with 12345p at the front is the problem. It just rejects the call. It doesn't seem to look at the rest of the number and see the difference. It appears to stop at the pause.
Or maybe I'm mis-interpreting what's happening. -
Query to find records with more than 2 decimal places
I have written the below query to find records with more than 2 decimal places, but it is returning records with decimal places 1 & 2.
The datatype of the AMT column is NUMBER (without any precision).
SELECT amt FROM amount_table
WHERE substr(amt, instr(amt, '.')) LIKE '.%'
AND length(substr(amt, instr(amt, '.') + 1)) > 2Output:-
AMT
*41591.1*
*275684.82*
*64491.59*
*3320.01*
*6273.68*
*27814.18*
*30326.79*
131.8413635
162.5352898
208.5203816
8863.314632
22551.27856
74.716992
890.0158441
2622.299682
831.6683841
*1743.14*
2328.195877
3132.453438
5159.827334
3.236234727
37.784
ThanksOracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
create table amount_table
LINE_NUMBER NUMBER not null,
FEE_AMT NUMBER not null
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60208, 41591.1);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60213, 275684.82);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60238, 64491.59);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (63026, 3320.01);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (59906, 6273.68);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (83111, 27814.18);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (83114, 30326.79);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112395, 131.8413634682);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112399, 162.5352898104);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112402, 208.5203815738);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112403, 8863.3146321954);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112406, 22551.2785551322);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112407, 74.716992);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112410, 890.015844079);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112411, 2622.2996817048);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112414, 831.6683840698);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112415, 1743.14);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112418, 2328.1958771886);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112419, 3132.4534379886);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112422, 5159.8273341686);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112423, 3.2362347266);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112426, 37.784);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112427, 198.7423503696);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112430, 0.7220848332);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112433, 12.4149375254); -
Qty with more than 3 decimal places in BOM
HI ALL,
CAN I PUT QTY IN BOM WITH MORE THAN 3 DECIMAL PLACES ITS VERY URGENT REQUIREMENT.
THANKS
R SEHGALDear Rakesh
I am not sure, but you can try this
1. Define one more UOM for example 4dec then in MM02 give the conversion of 4dec to your 3 decimal, give conversion in it. for eg 10*3dec = 4 dec
2. Now when you define bom enter quantity in 3dec(i,e, multiplying by 10) and then convert the uom in BOM to 4dec
You can try and let us know your feedback
Regards
Jitesh -
Save data with more than 6 decimal places in SAP MDM 5.5
Hi there,
I need some help concerning saving data with about 20 decimal places (e.g. 0,00452961328622164) in MDM. I declared the datatyp "REAL", there are only 6 decimal places possible.
How can I save this Data? Maybe exponential function?
Please help.
Thank you
Thomas Pfabcurrency takes you to 14 decimal places, if you want to have it as a little work around....you can always take out that symbol if it is annoying.(ohhh and decimal is multilingual too in currency, probably not a good hack!)
or without even knwoing what your requirement is? try normalizing the value, How many more decimal places can you hit?
One 100 1. "ten to the zero"
tenth 10-1 0.1 "ten to the minus one"
hundredth 10-2 0.01. "ten to the minus two"
thousandth 10-3 0.001. "ten to the minus three"
ten thousand 10-4 0.0001. "ten to the minus four"
hundred thousandth 10-5 0.00001. "ten to the minus five"
millionth 10-6 0.000001 "ten to the minus six"
ten millionth 10-7 0.0000001. "ten to the minus seven"
hundred millionth 10-8 0.00000001. "ten to the minus eight"
billionth 10-9 0.000000001. "ten to the minus nine"
ten billionth 10-10 0.0000000001. "ten to the minus ten"
hundred billionth 10-11 0.00000000001. "ten to the minus eleven"
trillionth 10-12 0.000000000001 "ten to the minus twelve"
ten trillionth 10-13 0.0000000000001. "ten to the minus thirteen"
hundred trillionth 10-14 0.00000000000001. "ten to the minus fourteen"
and put that field label indicating the 10th power. Like "Accuracy in 10 POW -9"
Just a wild guess.well thats how we usually show data in catalogues too!
(or)
separate the integer and decimal portions into two fields and store it in the repository.(split on ',')
-Sudhir. -
Is there a way to place an order with more than one item at a time? for example I am making a few books and having them all shipped to me. Do I have to order each one separately and pay shipping each time?
You have to order each book separately, if the books are different. Only multiple copies of the same book can be ordered in the same order, see here
Regards
Léonie -
Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how indesign can do this action.
set the wake-on lan on the main computer
The laptop's too far away from the router to be connected by ethernet. It's all wifi.
No separate server app on the laptop, it's all samba
The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
Last edited by saft (2010-03-18 20:38:08) -
Hi,
I am using JDEV 11.1.2.1.0
I am getting the following error :-
<RegionRenderer> <encodeAll> The region component with id: pt1:r1 has detected a page fragment with multiple root components. Fragments with more than one root component may not display correctly in a region and may have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root component.
Piece of code is for region is:-
<f:facet name="second">
<af:panelStretchLayout id="pa1"
binding="#{backingBeanScope.Assign.pa1}">
<f:facet name="center">
<af:region value="#{bindings.tfdAssignGraph1.regionModel}" id="r1"
binding="#{backingBeanScope.Assign.r1}"/>
</f:facet>
</af:panelStretchLayout>
</f:facet>
How do I resolve it ?
Thanks,Hi,
I see at least 3 errors
1. <RegionRenderer> <encodeAll> The region component with id: pt1:r1 has detected a page fragment with multiple root components.
the page fragment should only have a single component under the jsp:root tag. If you see more than one, wrap them in e.g. an af:panelGroupLayout or af:group component
2. SAPFunction.jspx/.xml" has an invalid character ".".
check the document (you can open it in JDeveloper if the customization was a seeded one. Seems that editing this file smething has gone bad
3. The expression "#{bindings..regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "pePanel") evaluated to null.
"pageeditorpanel" does seem to be missing in the PageDef file of the page holding the region
Frank -
Datagrid doesn't display numbers with more than 19 digits
With patch 1 the SQL Developer datagrid should display numbers with more than 10 digits. But the limit seems to be 19 digits now. Number20 and Number21 fields are not displayed on my machine.
WinXP Prof. 2002 SP2
SQL Developer 1.0.0.14.67
Personal Oracle Database 10g Release 10.2.0.2.0 - Production with options Partitioning, Spatial and OLAPI saw this as well and am working on fixing it.
-kris -
Nokia -Grouping Contacts with more than 1 number
I want to sync my phone with MS Outlook in such a way that it groups multiple numbers (eg home, mobile) for 1 contact under that contact's name.
When I do it syncs to the SIM.
For contacts with more than 1 entry it sets up contacts as: John Smith; John Smith1 etc
When I copy from SIM to phone memory it keeps these names
Does anyone know how to do this - I did manage it with the same handset (now replaced) but can't remember how.
It feels like I should be able to sync to the phone memory rather than SIM, but the Mokia PC suite doesn't seem to allow me to do that.I'm From South Africa and the sim cards we have in this country just save one number per contact and I would also get the same result with any simcard that is available in this country if I tried what your trying to do.
Assuming, There aren't many different types of sim cards then your sim card will also not be able to store multiple numbers to the same name. They just aren'r designed that way.
The same will happen if you copy your contacts from phone to sim. It just can't be done
Show your appreciation. Hit that kudos button real hard -
Hi everybody
I try to create a contact with more than one Phonenumber using the method contact.addString(...) .
Contact with one single number is no Problem but contacts with more than one Number are ignored and are not stored to the phonebook. I try to add the Numbers using a for -loop. Is there an other way to solve this Problem?
please Help.
Thank You.Wonder if you have made any progress - if so,
could you share ? -
I am upgrading to Calendar Server 4.0 on NT with more than 9 nodes
(or I already have) and my server won't start.
<P>
The steps are the same whether you have already upgraded or are about to.
<P>
Calendar Server 4.0 on the Windows NT platform can only support up to nine
nodes on one server, while 3.51 supported up to 14. If you have a Calendar
Server 3.51 with more than 9 nodes that you want to upgrade to Calendar Server
4.0, Netscape recommends that you migrate the extra nodes to another Calendar
Server 3.51 on another Windows NT system. To accomplish this:
<OL>
<LI>Install Calendar Server on another Windows NT machine and configure it to
use the same directory server as your current Calendar Server.
<LI>Stop and backup your current Calendar Server.
<LI>Individually zip up the node directories you want to move to the new
server. (drive:\unsers\unison\db\Nx
where "x" is the number of the node you want to use.)
<LI>Stop the new Calendar Server.
<LI>Unzip the files into the new Calendar Server in the same place as they
were on the old server.
<LI>Edit the unison.ini
file on the new server to add the nodes you have just migrated.
<LI>Edit the unison.ini
file on the old server to remove the nodes you have moved to the new server.
<LI>Edit the nodes.ini
file on the old server to remove the nodes you just moved and then add them
with the new hostname. Keep in mind that you will only be able to modify the
node network from the old host.
<LI>Run unidbfix -export
on both servers for all nodes.
<LI>Edit the remotenodes.ini
file on both servers to reflect your node topology.
<LI>Run unidbfix -import
to import the changes into the node databases.
<LI>Run unidbfix -c,
then -f,
then -c
again on both servers for all the nodes.
<LI>If you don't get any errors, run uninode -test all
to test if your nodes connections are set properly. If they are not, <B>do not</B>
start either of the servers; instead, fix the errors and try again.
<LI>Start both servers.
<LI>Log in and check to see if you can see people on remote nodes.
<LI>Notify the users on the moved nodes of their new calendar host.
<LI>If you did this in preparation of an upgrade, you can now run the upgrade to
4.0 since both servers contain fewer than 9 nodes.
</OL>Use Disk Utility whihc is in the Utilities Folder.
Select your Boot Disk on the left.
Select Verify Permissions
If any errors the do Reapir permissions.
You might have to repeat the process.
see this:
Steve -
How to display more than 10 rows in an Auto Updating Report
I followed Carl Backstorm's example, http://htmldb.oracle.com/pls/otn/f?p=11933:40:525653462286833::NO:RP:: to create a page with an auto update report/region. It's working fine (thanks, Carl) but I can't have the report display all rows (38 rows in total). Everytime I press the "Manual Refresh" button, it shows 10 (the first 10) rows only.
When the report displays at the first time, it shows all the rows (38 rows). Number of Rows and Maximum Row Count are set to 999999 and "No Pagination Selected" in the report region. But after I press the "Manual Refresh" button or specifiy an update time value (like 1 second) to have it auto update, then it only display the first 10 rows.
Is there a way to display more than 10 rows in an Auto Updating Report using Carl's example auto update report/page? Anyone can help? Thank you.
-Michele
Edited by: 106451 on Jun 30, 2010 10:12 AMYes, I changed it to:
function table_object(pId){
this.id = pId;
this.start_record = 1; //optional
this.num_record = 50; //optional
this.num_record2 = 50; //optional
I don't quite understand how these vaiables are used for though. Thanks. -
Report with more than 500 rows
I have a report with more than 500 rows and i donot know the total number of records returned from sql query before hand. Is there any way to dynamically set the MAX ROW COUNT in the report - layout and pagination.
Thanks a lot
SudhaHi All,
The main problem for the scenario is that....Say you first create a SQL query based report with setting the row per page 15 .Now after the region is displayed if u go through the report attributes of the page and change the no. of row per page and apply changes the same will not going to reflect in the report display page.
For ur case just select the no. of page u want to show while creating SQL Query based report region say 1000 and after creating the region go to the report attributes -> Layout and Pagination -> Max Row Count : 9000 (say).
I have solved the problem after creating 700 rows and the all rows displayed in the page fine........If u have further issue plz revert back to me.
Thats solve ur problem i think.....
Thanks n Regards,
ROSY
Maybe you are looking for
-
IPad 2 Not Recognized by Windows (but iTunes is fine)
I've read through a lot of threads and tried everything in this post: http://support.apple.com/kb/TS1538 I have an issue that doesn't seem to fit into anything I'm finding. Probably easiest to break it down into chunks... I have an iPhone 3GS and an
-
How to add crumblinks in portal
Hi I have a question. I have a portal page with some tabs on it.when i navigate from one page to another page is there a way to display the entire path. For eg.In OTN page when you go from one page to other on the left side you see a link which shows
-
I recently updated my ipod?
so i recently updated my ipod, and after it asked me to verify my app store account. the problem is that the ipod is sending the verification to the wrong email, and email that i cant get into to change. how can i change the email so i can download a
-
I am new to Struts and Tiles framework in Struts. As the header and footer are same for all the JSP pages, will the header and footer tiles be reloaded each time a left navigatin link is clicked. Is there a method that we can have them load only once
-
Why is there no EJB modules generated in chapter 10 of Medrec Tutorial?
Hi, I am going through the sample Medical Records Development Tutorial. In Chapter 10,after going through the Procedure 3..I couldn't see any EJB Module being deployed at http://localhost:7101/console/Deployments/EJB Modules .Any clue what is going w