GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • V4.x Documentation
  • Contact
  • Privacy Statement
  • Contributor License Agreement
  • Software License Agreement
  • Trademarks

This view

  • Original page
  • New address

GeezerVison is showing docs.voltdb.com — FLOOR()

  • VoltDB Home
  • Forums
  • V4.x Books
    • VoltDB Tutorial
    • Using VoltDB
    • VoltDB Performance Guide
    • VoltDB Planning Guide
    • VoltDB Administrator's Guide
  • Current docs ▶
FLOOR()

Documentation

VoltDB Home » Documentation » Using VoltDB
< previoustable of contentsnext >

FLOOR()

FLOOR() — Returns the largest integer value less than or equal to a numeric expression.

Synopsis

FLOOR( numeric-expression )

Description

The FLOOR() function returns the largest integer less then or equal to the specified numeric expression. In other words, the FLOOR() function truncates fractional numeric values. For example:

FLOOR(3.1415) = 3
FLOOR(2.0) = 2
FLOOR(-5.32) = -6

Example

The following example uses the FLOOR function to calculate the whole number of stocks owned by a specific shareholder.

SELECT customer, company, 
       FLOOR(num_of_stocks) AS stocks_available_for_sale
       FROM shareholders WHERE customer_id = ?
       ORDER BY company;
< previoustable of contentsnext >
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.