--- title: "fmod Function | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: - "cpp-language" ms.tgt_pltfrm: "" ms.topic: "article" dev_langs: - "C++" helpviewer_keywords: - "fmod function" ms.assetid: ffb3d9b9-b6e4-45e2-aadb-af60c3ff54f6 caps.latest.revision: 6 author: "mikeblome" ms.author: "mblome" manager: "ghogen" translation.priority.ht: - "cs-cz" - "de-de" - "es-es" - "fr-fr" - "it-it" - "ja-jp" - "ko-kr" - "pl-pl" - "pt-br" - "ru-ru" - "tr-tr" - "zh-cn" - "zh-tw" --- # fmod Function **ANSI 4.5.6.4** Whether a domain error occurs or zero is returned when the `fmod` function has a second argument of zero When the `fmod` function has a second argument of zero, the function returns zero. ## See Also [Library Functions](../c-language/library-functions.md)