Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
float number + music copyright
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#1
float number + music copyright

I have seen some scripts where a float number would be represented like 0.0f, but I have experienced that it also works without that "f". What does that f stand for, and when do you use it?

Now for the second question, when I want to use a song or a soundtrack made by someone else for my custom story, do I have to contact the maker and ask if I can use it, or would be using that song for my custom story only not break the copyright, as long as I give credits?
06-20-2012, 08:53 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#2
RE: float number + music copyright

(06-20-2012, 08:53 PM)FastHunteR Wrote: I have seen some scripts where a float number would be represented like 0.0f, but I have experienced that it also works without that "f". What does that f stand for, and when do you use it?

Now for the second question, when I want to use a song or a soundtrack made by someone else for my custom story, do I have to contact the maker and ask if I can use it, or would be using that song for my custom story only not break the copyright, as long as I give credits?
You must always have approval in order to use content created by someone else.
06-20-2012, 08:58 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#3
RE: float number + music copyright

Thank you for clearing question 2 up.
But there's still the question what the "f" does at float numbers, since they still work without it.
06-20-2012, 09:08 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: float number + music copyright

(06-20-2012, 09:08 PM)FastHunteR Wrote: Thank you for clearing question 2 up.
But there's still the question what the "f" does at float numbers, since they still work without it.
Without it angelscript assumes the numbers are doubles, which are effectively a more "precise" version of a float (oversimplifying things a little, feel free to read up on floating point if you want to know the exact difference). In the end there won't really be any negative effects from putting doubles where you should have floats, but the conversion will sometimes give you warnings about loss of precision, which can clutter up the errors pane a little.
(This post was last modified: 06-20-2012, 09:27 PM by Apjjm.)
06-20-2012, 09:25 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#5
RE: float number + music copyright

Thank you, that cleared up a bunch.
06-20-2012, 09:28 PM
Find




Users browsing this thread: 1 Guest(s)