About 25,000 results
Open links in new tab
  1. How do I use floating-point arithmetic in bash? - Stack Overflow

    A comment for everybody trying to do floating point arithmetic in your script, ask yourself: do I really need floating point arithmetic? sometimes you can really get along without. See, for …

  2. Questions About Float - useThinkScript Community

    Jun 1, 2019 · Herein lies all our discussions, rants, and questions about float. Despite the endless ways of presenting float queries, the bottom line is: On the TOS platform, float is not data that …

  3. How to convert string into float in JavaScript? - Stack Overflow

    Mar 13, 2009 · How to convert string into float in JavaScript? Asked 16 years, 10 months ago Modified 5 years ago Viewed 604k times

  4. How to format a float in javascript? - Stack Overflow

    In JavaScript, when converting from a float to a string, how can I get just 2 digits after the decimal point? For example, 0.34 instead of 0.3445434.

  5. Floating P/L (FPL) Labels For ThinkOrSwim - useThinkScript

    Feb 6, 2023 · And what I would like is a flag that shows percentage made or loss. Thanks, #Script provided courtesy of Mbox56 #Hint: This script will display on the Chart the Profit or Loss of …

  6. Lua: converting from float to int - Stack Overflow

    Even though Lua does not differentiate between floating point numbers and integers, there are some cases when you want to use integers. What is the best way to covert a number to an …

  7. How can I deal with floating point number precision in JavaScript?

    Sep 22, 2009 · to print out your number as a float with two decimal places. You may also use Number.toFixed () for display purposes, if you'd rather not include more files merely for floating …

  8. How do I convert an integer to a float in JavaScript?

    I've got an integer (e.g. 12), and I want to convert it to a floating point number, with a specified number of decimal places. Draft function intToFloat(num, decimal) { [code goes here] } intToFl...

  9. How to define an array of floats in Shader properties?

    You can use a ComputeBuffer to set the float array from C#. ComputeShader programs often need arbitrary data to be read & written into memory buffers. ComputeBuffer class is exactly …

  10. syntax - How do I convert a float number to a whole number in ...

    Feb 28, 2009 · I'd like to convert a float to a whole number in JavaScript. Actually, I'd like to know how to do BOTH of the standard conversions: by truncating and by rounding. And efficiently, …