• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(83353)  |  Call(82726)  |  Derive(626)  |  Import(1)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/omega_analysis/metadata_reader.py   quickflash(Download)
                if (current_metadata.has_key("Time")) :
 
                    time = float(current_metadata["Time"])
                    datafile_group.add_keyword_value("Time", time)
 
                elif (current_metadata.has_key("EnvelopeMinPos")) :
 
                    pos = float(current_metadata["EnvelopeMinPos"])
                    datafile_group.add_keyword_value("EnvelopeMinPos", pos)
 
                elif (current_metadata.has_key("EnvelopeMaxPos")) :
 
                    pos = float(current_metadata["EnvelopeMaxPos"])
 
                    for elem in min_coords_str :
                        min_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMinCoords",
 
                    for elem in max_coords_str :
                        max_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMaxCoords",

src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/raytracer/do_raytrace.py   quickflash(Download)
# Constants
 
rad_per_deg = math.pi / float(180.0)
 
mpirun_exec = "mpirun"
executable = "~/code/flash/QuickFlash/examples/raytracer/raytracer"
 
# Set up options
 
cylinder_y = float(0.045)
 
cylinder_y = float(0.045)
cylinder_z = float(0.045)
 
cylinder_max_radius = float(0.060)
 
cylinder_min_x = float(0.0)

src/q/u/quickflash-HEAD/trunk/examples/omega_analysis/metadata_reader.py   quickflash(Download)
                if (current_metadata.has_key("Time")) :
 
                    time = float(current_metadata["Time"])
                    datafile_group.add_keyword_value("Time", time)
 
                elif (current_metadata.has_key("EnvelopeMinPos")) :
 
                    pos = float(current_metadata["EnvelopeMinPos"])
                    datafile_group.add_keyword_value("EnvelopeMinPos", pos)
 
                elif (current_metadata.has_key("EnvelopeMaxPos")) :
 
                    pos = float(current_metadata["EnvelopeMaxPos"])
 
                    for elem in min_coords_str :
                        min_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMinCoords",
 
                    for elem in max_coords_str :
                        max_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMaxCoords",

src/q/u/quickflash-HEAD/rtflame/examples/omega_analysis/metadata_reader.py   quickflash(Download)
                if (current_metadata.has_key("Time")) :
 
                    time = float(current_metadata["Time"])
                    datafile_group.add_keyword_value("Time", time)
 
                elif (current_metadata.has_key("EnvelopeMinPos")) :
 
                    pos = float(current_metadata["EnvelopeMinPos"])
                    datafile_group.add_keyword_value("EnvelopeMinPos", pos)
 
                elif (current_metadata.has_key("EnvelopeMaxPos")) :
 
                    pos = float(current_metadata["EnvelopeMaxPos"])
 
                    for elem in min_coords_str :
                        min_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMinCoords",
 
                    for elem in max_coords_str :
                        max_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMaxCoords",

src/q/u/quickflash-HEAD/netcdf/examples/omega_analysis/metadata_reader.py   quickflash(Download)
                if (current_metadata.has_key("Time")) :
 
                    time = float(current_metadata["Time"])
                    datafile_group.add_keyword_value("Time", time)
 
                elif (current_metadata.has_key("EnvelopeMinPos")) :
 
                    pos = float(current_metadata["EnvelopeMinPos"])
                    datafile_group.add_keyword_value("EnvelopeMinPos", pos)
 
                elif (current_metadata.has_key("EnvelopeMaxPos")) :
 
                    pos = float(current_metadata["EnvelopeMaxPos"])
 
                    for elem in min_coords_str :
                        min_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMinCoords",
 
                    for elem in max_coords_str :
                        max_coords.append(float(elem))
 
                    datafile_group.add_keyword_value("GridMaxCoords",

src/q/u/quickflash-HEAD/trunk/examples/raytracer/do_raytrace.py   quickflash(Download)
# Constants
 
rad_per_deg = math.pi / float(180.0)
 
mpirun_exec = "mpirun"
executable = "~/code/flash/QuickFlash/examples/raytracer/raytracer"
 
# Set up options
 
cylinder_y = float(0.045)
 
cylinder_y = float(0.045)
cylinder_z = float(0.045)
 
cylinder_max_radius = float(0.060)
 
cylinder_min_x = float(0.0)

src/q/u/quickflash-HEAD/rtflame/examples/raytracer/do_raytrace.py   quickflash(Download)
# Constants
 
rad_per_deg = math.pi / float(180.0)
 
mpirun_exec = "mpirun"
executable = "~/code/flash/QuickFlash/examples/raytracer/raytracer"
 
# Set up options
 
cylinder_y = float(0.045)
 
cylinder_y = float(0.045)
cylinder_z = float(0.045)
 
cylinder_max_radius = float(0.060)
 
cylinder_min_x = float(0.0)

src/q/u/quickflash-HEAD/netcdf/examples/raytracer/do_raytrace.py   quickflash(Download)
# Constants
 
rad_per_deg = math.pi / float(180.0)
 
mpirun_exec = "mpirun"
executable = "~/code/flash/QuickFlash/examples/raytracer/raytracer"
 
# Set up options
 
cylinder_y = float(0.045)
 
cylinder_y = float(0.045)
cylinder_z = float(0.045)
 
cylinder_max_radius = float(0.060)
 
cylinder_min_x = float(0.0)

src/s/y/sympy-0.7.2/examples/intermediate/sample.py   sympy(Download)
        raise ValueError("x_args must be a tuple of the form (var, min, max, n)")
 
    x_l = float(x_max - x_min)
    x_d = x_l/float(x_n)
    X = arange(float(x_min), float(x_max)+x_d, x_d)
 
    Y = empty(len(X))
    for i in range(len(X)):
        try:
            Y[i] = float(f.subs(x, X[i]))

src/g/d/GDAL-1.9.1/samples/ogr2ogr.py   GDAL(Download)
            oRing = ogr.Geometry(ogr.wkbLinearRing)
 
            oRing.AddPoint_2D( float(args[iArg+1]), float(args[iArg+2]) )
            oRing.AddPoint_2D( float(args[iArg+1]), float(args[iArg+4]) )
            oRing.AddPoint_2D( float(args[iArg+3]), float(args[iArg+4]) )

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next