Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
float64
- Page 1
Tabular Data Classification with Hugging Face Meta Tree Transformer
Programming
Computer Science
1 Day Ago
by usmanmalik57
As a data scientist, I have extensively used the Hugging Face library for processing unstructured data such as images, text, and audio. My previous blogs have covered various transformer models for these types of data. Lately, however, I discovered that Hugging Face also provides transformer models for tabular data. One such transformer is the …
Re: How Build video-player in html And css ?
Programming
2 Months Ago
by Kirubel_2
body{ /* background: url(../img/w11.png); */ background: url(../img/m.jpg); background-size: cover; background-repeat: no-repeat; margin: 0; padding: 0; height: 101vh; overflow-y: hidden; } .container button{ background: transparent; …
Re: Trying to animate sprite using DirectX9
Programming
Software Development
2 Months Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
Re: float over-/underflow
Programming
Software Development
18 Years Ago
by server_crash
float.MIN_VALUE-1 I think.
Float Help
Programming
Software Development
17 Years Ago
by SHWOO
I have instantiated an object with arguments( string, float, float) The two floating numbers are initialized using the constructor but when I display my object using my print function instead of getting the two floating numbers I entered, I get 0.00 for each. [code]#ifndef Publication_H #define Publication_H #include <string> using std::…
*(float*)
Programming
Software Development
14 Years Ago
by mani_singh
hello to all, i am learning c++ and while looking at some code, i came upon this: *(float*) and *(DWORD*). for example [ICODE]#define adress_1 0x00AA8B20 *(float*) adress_1 = 5000000; [/ICODE] so can you explain what the *(float*) and *(DWORD*) do. and i did try and search on google but didnt get very far
Re: *(float*)
Programming
Software Development
14 Years Ago
by Aranarth
This casts 0x00AA8B20 to a pointer to float and dereferences it. So it interprets 0x00AA8B20 as an address of a float value. One would normally write this as such: *reinterpret_cast<float*>(0x00AA8B20)=5000000; DWORD is just a typedef to (u)int or (u)long.
Re: *(float*)
Programming
Software Development
14 Years Ago
by strmstn
That is very common when programming hardware in C and the addresses are known. They could be static I/O or similar. address_1 is 0x00AA8B20, (float*) address_1 would interpret the address as a pointer to a float and * (float*) address_1 then means the variable stored at that address.
float and double behavior
Programming
Software Development
14 Years Ago
by abie
I am trying to optimize code for Monte Carlo simulation. Even minute performance differences piles up after 100 million iterations and thus I need to squeeze every nanosecond from math operations! One area where I thought I could save a lot stems from the fact that I only require precision of 4 significant digits. It therefore seems natural to …
Re: float and double precission
Programming
Software Development
14 Years Ago
by Narue
[B]>i read that the precision of float is 6 digits and double is 10.[/B] No, the precision of float is FLT_DIG and double is DBL_DIG, where both of those macros are defined in <float.h>. [B]>but it is showing only 6 for both.[/B] Yes, that's the correct behavior. If you print a floating-point value using printf and no precision …
Re: Float: Left; not working in CSS
Digital Media
UI / UX Design
12 Years Ago
by Dandello
[CODE]#review_container { padding-top: 1px; width: 750px; margin-left: 100px; outline-style: solid; outline-color: #E0E0E9; outline-width: 1px; background-color: white; } #review_pic { width: 200px; height: 150px; margin-left: 5px; float: left; } #review_info { width: 500px; margin-left: 20px; margin-top: 20px; margin-bottom: 10px; float: left; …
Float not working in Firefox.
Digital Media
UI / UX Design
15 Years Ago
by Pim
Hello, This is the css: [code] ul { float: left; /*Het plaatje van de persoon*/ position: fixed; margin-left: 20px; margin-top: 2px; } li { float: top; postion: fixed; margin left: 20px; margin-top: 5px; list-style: none; } p { margin left: 5px; } body { background-color: #66FF66; } [/code] And the HTML: […
float value issue
Programming
Software Development
14 Years Ago
by Mitja Bonca
Why when I save a float value into database (the data type is float as well), for example 24,62 in database is writen as 24,6200008392334. I have entered only 2 decimals, but in db there is plenty of them. This is how I have: [CODE]string Together = textBoxAmount.Text; string[] Seperated = Together.Split(' '); float MyAmount = float.Parse(…
Float layout question
Digital Media
UI / UX Design
14 Years Ago
by ryy705
Hello, I am experimenting with float layouts. It is my understanding that if you float three divs to the left they will sit next to each other without bothering any other divs above or below them. As long as the divs have specified width and their container div has enough room. Unfortunately, my #insdCont div(contains 3 floated divs) is …
Float: Left; not working in CSS
Digital Media
UI / UX Design
12 Years Ago
by Birdmanskii
The #review section won't float left in Dreamweaver. For some reason when I use the float: left; command, the #review div stays underneath the #band_links div. I want #review to line up on the right side of the #share, #tracklist, and #band_links divs. I've tried everything I can think of but nothing has worked so far. Thanks in advanced! Here'…
Re: Float not working
Digital Media
UI / UX Design
11 Years Ago
by Baradaran
Clear both clears the float on both sides. Clear left clears the float on the left, and clear right the float on the right. Paragraphs are block elements. In order to place to paragraphs next to each other, you have to float both paragraphs. <p style="float: left;">The left paragraph</p> <p style="float: …
Re: Float not working in Firefox.
Digital Media
UI / UX Design
15 Years Ago
by Pim
Okay well I modified the design. I've got a new problem with the float property now: I want to make an image float to the left, with a box with text in in on the right. In IE this works fine, Firefox however insists on placing the banaan.jpg over the box. Is this fixable? CSS: [code] div.box /* Zorgt voor het textvak in het midden. Zoek naar …
Re: float and double behavior
Programming
Software Development
14 Years Ago
by Dave Sinkula
[QUOTE=Ancient Dragon;1043921]Yup. floats are always converted to doubles when used as function parameters.[/QUOTE][url]http://groups.google.com/group/comp.lang.c/browse_thread/thread/2aaf5360b08c89a9/1000b1f7fb33ea53?ie=UTF-8&q=float+promoted+double+function+group%3Acomp.lang.c&pli=1[/url] [QUOTE]No, that's only true if (1) you call the …
Re: float value problem
Programming
Software Development
11 Years Ago
by vijayan121
> I am facing problem using float > in loop its value stuck at 8388608.00 First read up a bit on the representation of floating point numbers and loss of precision. http://www.cprogramming.com/tutorial/floating_point/understanding_floating_point_representation.html Then, try out this program: #include <limits> #include <…
float declaration problem
Programming
Software Development
19 Years Ago
by paradox814
I am having trouble compiling the following piece of code, it keeps giving me an error talking about an possible loss of precision. I know i could replace the one line to: private float someNum = 0; but i don't like that becuase it is assigning an int to a float ... yes yes i know that the compiler will use coersion and cast it off to a float, …
Re: Float not working in Firefox.
Digital Media
UI / UX Design
15 Years Ago
by almostbob
There is no [icode]float :top;[/icode] property float takes left right none
Re: float division simple problem.
Programming
Software Development
15 Years Ago
by jlm699
[QUOTE=planetPlosion;850479]So, apparently the for statement makes my guesses worse. Thanks in advance[/QUOTE] Look at what [icode]range(15)[/icode] and [icode]range(1,15)[/icode] produce: [code=python] >>> range(15) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] >>> range(1,15) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]…
Re: float takes div out of container, need help
Digital Media
UI / UX Design
15 Years Ago
by essential
Just provide wrapper's or tubes inside your floated div to preserved the whole layout. Try this one: [code=html]<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id=&…
Float truncated
Programming
Web Development
14 Years Ago
by keizersoz
Hello all, In my WSDL I defined a float [CODE]<xsd:complexType name="M01_rowType"> <xsd:sequence> <xsd:element name="helpdTTSAvg" type="xsd:float"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="M01_tableType"> <xsd:sequence> <xsd:element name…
Float Drop - floated elements drop below their expected position
Digital Media
UI / UX Design
14 Years Ago
by geryzone
Hello! I'm having trouble with the CSS of this liquid (flixible ) layout. The problem occurs only in IE7. Whenever I decrease the size of the browser the #eventsListing (6 images) drops under #content (text/copy). I tried all kinds of hacks and freestyle solutions but nothing have worked so far. Let me know if you think of something that might …
Re: float value issue
Programming
Software Development
14 Years Ago
by sknake
[icode]float[/icode] is not a precise data type. You should probably be using the [icode]money[/icode] datatype in SQL server to store currency values. Take a look at SQL BOL for float: [quote] Approximate-number data types for use with floating point numeric data. Floating point data is approximate; therefore, not all values in the data type …
"float" and "margin"
Digital Media
UI / UX Design
14 Years Ago
by dominique7
Hi, I think the problem is simple enough to understand, but if you'd need it, I would set up an example. I'm quite ok with html and css, but I'm not fully comfortable with "float" I use it float: left (or right) to produce text colums, but now I got a problem... I have a portion of text with an image aside. I placed the image like &…
Float left property for <div> not working in firefox
Digital Media
UI / UX Design
13 Years Ago
by Rajicet
Hi, In IE, two rows and two columns in each row are coming correctly. But in firfox, it is coming as 3 columns in first row and 1 column in second row. The code is given below.Any solution for this problem ? please help. <div style="width:60%" align="left"> <div>…
Re: Float left property for <div> not working in firefox
Digital Media
UI / UX Design
13 Years Ago
by Rajicet
For the second row, we can use Clear property. <div style="width:60%;clear:both" align="left"> <div> <div align="left" style="float: left;width:30%;">row1 column1</div> <div align="left" style="float: left;width:30%;">row1 column2</div> </div&…
Re: float Array rounds decimal values into zeros !!!
Programming
Software Development
13 Years Ago
by sheennave
When i insert value into table row (data type float), smt rounds decimal values into zeros. Here is the dramatically simplified code in order to see the situation.Interestingly, assigning a single array value into a variable (as usual) doesn't work here ! Is this a SQLite bug ?? float * arraySource_energy_kcal = new float[1]; // member capacity…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC