blocks_vertical/operators.js
function() {
    this.jsonInit({
      "message0": Blockly.Msg.OPERATORS_MATHOP,
      "args0": [
        {
          "type": "field_dropdown",
          "name": "OPERATOR",
          "options": [
            [Blockly.Msg.OPERATORS_MATHOP_ABS, 'abs'],
            [Blockly.Msg.OPERATORS_MATHOP_FLOOR, 'floor'],
            [Blockly.Msg.OPERATORS_MATHOP_CEILING, 'ceiling'],
            [Blockly.Msg.OPERATORS_MATHOP_SQRT, 'sqrt'],
            [Blockly.Msg.OPERATORS_MATHOP_SIN, 'sin'],
            [Blockly.Msg.OPERATORS_MATHOP_COS, 'cos'],
            [Blockly.Msg.OPERATORS_MATHOP_TAN, 'tan'],
            [Blockly.Msg.OPERATORS_MATHOP_ASIN, 'asin'],
            [Blockly.Msg.OPERATORS_MATHOP_ACOS, 'acos'],
            [Blockly.Msg.OPERATORS_MATHOP_ATAN, 'atan'],
            [Blockly.Msg.OPERATORS_MATHOP_LN, 'ln'],
            [Blockly.Msg.OPERATORS_MATHOP_LOG, 'log'],
            [Blockly.Msg.OPERATORS_MATHOP_EEXP, 'e ^'],
            [Blockly.Msg.OPERATORS_MATHOP_10EXP, '10 ^']
          ]
        },
        {
          "type": "input_value",
          "name": "NUM"
        }
      ],
      "category": Blockly.Categories.operators,
      "extensions": ["colours_operators", "output_number"]
    });
  }
function() {
    this.jsonInit({
      "message0": Blockly.Msg.OPERATORS_MATHOP,
      "args0": [
        {
          "type": "field_dropdown",
          "name": "OPERATOR",
          "options": [
            [Blockly.Msg.OPERATORS_MATHOP_ABS, 'abs'],
            [Blockly.Msg.OPERATORS_MATHOP_FLOOR, 'floor'],
            [Blockly.Msg.OPERATORS_MATHOP_CEILING, 'ceiling'],
            [Blockly.Msg.OPERATORS_MATHOP_SQRT, 'sqrt'],
            [Blockly.Msg.OPERATORS_MATHOP_SIN, 'sin'],
            [Blockly.Msg.OPERATORS_MATHOP_COS, 'cos'],
            [Blockly.Msg.OPERATORS_MATHOP_TAN, 'tan'],
            [Blockly.Msg.OPERATORS_MATHOP_ASIN, 'asin'],
            [Blockly.Msg.OPERATORS_MATHOP_ACOS, 'acos'],
            [Blockly.Msg.OPERATORS_MATHOP_ATAN, 'atan'],
            [Blockly.Msg.OPERATORS_MATHOP_LN, 'ln'],
            [Blockly.Msg.OPERATORS_MATHOP_LOG, 'log'],
            [Blockly.Msg.OPERATORS_MATHOP_EEXP, 'e ^'],
            [Blockly.Msg.OPERATORS_MATHOP_10EXP, '10 ^']
          ]
        },
        {
          "type": "input_value",
          "name": "NUM"
        }
      ],
      "category": Blockly.Categories.operators,
      "extensions": ["colours_operators", "output_number"]
    });
  }
function ( ) { this . jsonInit ( { "message0" : Blockly . Msg . OPERATORS_MATHOP , "args0" : [ { "type" : "field_dropdown" , "name" : "OPERATOR" , "options" : [ [ Blockly . Msg . OPERATORS_MATHOP_ABS , 'abs' ] , [ Blockly . Msg . OPERATORS_MATHOP_FLOOR , 'floor' ] , [ Blockly . Msg . OPERATORS_MATHOP_CEILING , 'ceiling' ] , [ Blockly . Msg . OPERATORS_MATHOP_SQRT , 'sqrt' ] , [ Blockly . Msg . OPERATORS_MATHOP_SIN , 'sin' ] , [ Blockly . Msg . OPERATORS_MATHOP_COS , 'cos' ] , [ Blockly . Msg . OPERATORS_MATHOP_TAN , 'tan' ] , [ Blockly . Msg . OPERATORS_MATHOP_ASIN , 'asin' ] , [ Blockly . Msg . OPERATORS_MATHOP_ACOS , 'acos' ] , [ Blockly . Msg . OPERATORS_MATHOP_ATAN , 'atan' ] , [ Blockly . Msg . OPERATORS_MATHOP_LN , 'ln' ] , [ Blockly . Msg . OPERATORS_MATHOP_LOG , 'log' ] , [ Blockly . Msg . OPERATORS_MATHOP_EEXP , 'e ^' ] , [ Blockly . Msg . OPERATORS_MATHOP_10EXP , '10 ^' ] ] } , { "type" : "input_value" , "name" : "NUM" } ] , "category" : Blockly . Categories . operators , "extensions" : [ "colours_operators" , "output_number" ] } ) ; }
Block for "advanced" math ops on a number.
@this Blockly.Block
Block for advanced math ops on a number .