0.0f
0.0f
0.0f
0.0f
0.0f
0.0f 0.0f 0.0f 0.0f 0.0f 0.0f 0.0f 0.0f
0.0f 0.0f
0.0f
Go Back  Xtreme Visual Basic Talk > > > 0.0f


Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2007, 10:17 PM
Qua's Avatar
Qua0.0f Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default 0.0f


Why do I see numbers written in that format when working with vectors?

I tried searchin google/XVBT, but couldnt narrow down what to search for.
Reply With Quote
  #2  
Old 10-21-2007, 01:26 AM
AtmaWeapon's Avatar
AtmaWeapon0.0f AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

The "f" suffix tells the compiler to interpret the value as a Float rather than a Double. There's a few more like that but I can never seem to find the MSDN page about all of them.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 10-21-2007, 03:27 AM
jo0ls0.0f jo0ls is offline
Senior Contributor

Forum Leader
* Expert *
 
Join Date: Feb 2005
Location: London
Posts: 1,050
Default

Ah, same here - but I saw it yesterday and managed to remember it...

Visual Basic Language Concepts - Type Characters
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
0.0f
0.0f
0.0f 0.0f
0.0f
0.0f
0.0f 0.0f 0.0f 0.0f 0.0f 0.0f 0.0f
0.0f
0.0f
 
0.0f
0.0f
 
-->