Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
float(x) -> floating point number

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

src/t/w/TwistedBot-HEAD/twistedbot/axisbox.py   TwistedBot(Download)
    def from_player_coords(cls, coords):
        return cls(
            coords.x - config.PLAYER_RADIUS,
            coords.y,
            coords.z - config.PLAYER_RADIUS,
            coords.x + config.PLAYER_RADIUS,
            coords.y + config.PLAYER_HEIGHT,
            coords.z + config.PLAYER_RADIUS)

src/t/w/TwistedBot-HEAD/twistedbot/blocks.py   TwistedBot(Download)
            if check[1] != 0:
                check[3] = check[1]
            yield AABB.from_block_coords(self.x + check[2] * config.PLAYER_RADIUS, self.y + 0.5, self.z + check[3] * config.PLAYER_RADIUS)
        else:
            if check[0] != 0:
                yield AABB.from_block_coords(self.x + check[0] * config.PLAYER_RADIUS, self.y + 0.5, self.z)
            if check[1] != 0:
                yield AABB.from_block_coords(self.x, self.y + 0.5, self.z + check[1] * config.PLAYER_RADIUS)