--- title: "setFloat Method (SQLServerCallableStatement) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerCallableStatement.setFloat" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 26d861da-bb6a-4197-8b32-13dc7781c2bb author: David-Engel ms.author: v-daenge --- # setFloat Method (SQLServerCallableStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to the given **float** value. ## Syntax ``` public void setFloat(java.lang.String sCol, float f) ``` #### Parameters *sCol* A **String** that contains the parameter name. *f* A **float** value. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setFloat method is specified by the setFloat method in the java.sql.CallableStatement interface. ## See Also [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)